Allows serialization_scope to be disabled with serialization_scope nil

This commit is contained in:
Andy Lindeman
2012-06-05 12:37:09 -04:00
parent 7afac9cd5c
commit 47850677e9
2 changed files with 35 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ module ActionController
end
def serialization_scope
send(_serialization_scope) if respond_to?(_serialization_scope)
send(_serialization_scope) if _serialization_scope && respond_to?(_serialization_scope)
end
def default_serializer_options