mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Add Serializer#method, so it doesn't delegate to object
This commit is contained in:
parent
6db19f70a1
commit
378627212e
@ -434,6 +434,11 @@ module AMS
|
|||||||
__send__(*args)
|
__send__(*args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
KERNEL_METHOD_METHOD = ::Kernel.instance_method(:method)
|
||||||
|
def method(method_name)
|
||||||
|
KERNEL_METHOD_METHOD.bind(self).call(method_name)
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def link_builder?
|
def link_builder?
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user