mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
Merge pull request #276 from darthdeus/patch-1
Fix serialization_scope to check for private/protected methods
This commit is contained in:
commit
1b80caa22f
@ -33,7 +33,7 @@ module ActionController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def serialization_scope
|
def serialization_scope
|
||||||
send(_serialization_scope) if _serialization_scope && respond_to?(_serialization_scope)
|
send(_serialization_scope) if _serialization_scope && respond_to?(_serialization_scope, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
def default_serializer_options
|
def default_serializer_options
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user