mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Delegating to the object makes things like raise("") and Integer() work
This commit is contained in:
parent
ef00242421
commit
13c5c12374
@ -204,5 +204,15 @@ module AMS
|
|||||||
def send(*args)
|
def send(*args)
|
||||||
__send__(*args)
|
__send__(*args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def method_missing(name, *args, &block)
|
||||||
|
object.send(name, *args, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
def respond_to_missing?(name, include_private = false)
|
||||||
|
object.respond_to?(name, include_private)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user