We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
send
public_send
1 parent 58f598b commit 755516bCopy full SHA for 755516b
lib/active_model/serializer/attribute.rb
@@ -26,9 +26,9 @@ def value(serializer)
26
def include?(serializer)
27
case condition_type
28
when :if
29
- serializer.send(condition)
+ serializer.public_send(condition)
30
when :unless
31
- !serializer.send(condition)
+ !serializer.public_send(condition)
32
else
33
true
34
end
lib/active_model/serializer/reflection.rb
@@ -52,9 +52,9 @@ def value(instance)
52
53
54
55
56
57
58
59
60
0 commit comments