We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa1cfe0 commit 225c3e3Copy full SHA for 225c3e3
1 file changed
lib/jsonapi/resource.rb
@@ -403,7 +403,7 @@ def attribute(attr, options = {})
403
end unless method_defined?(attr)
404
405
define_method "#{attr}=" do |value|
406
- @model.public_send "#{options[:delegate] ? options[:delegate].to_sym : attr}=", value
+ @model.public_send("#{options[:delegate] ? options[:delegate].to_sym : attr}=", value)
407
end unless method_defined?("#{attr}=")
408
end
409
0 commit comments