lib/grape_entity/delegator/base.rb in grape-entity-0.10.0 vs lib/grape_entity/delegator/base.rb in grape-entity-0.10.1
- old
+ new
@@ -11,9 +11,14 @@
end
def delegatable?(_attribute)
true
end
+
+ def accepts_options?
+ # Why not `arity > 1`? It might be negative https://ruby-doc.org/core-2.6.6/Method.html#method-i-arity
+ method(:delegate).arity != 1
+ end
end
end
end
end