mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fix and test for #490
This commit is contained in:
@@ -12,7 +12,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def serializer_class(object, options = {})
|
||||
serializer_from_options || serializer_from_object(object, options) || default_serializer
|
||||
(serializer_from_options unless object.nil?) || serializer_from_object(object, options) || default_serializer
|
||||
end
|
||||
|
||||
def build_serializer(object, options = {})
|
||||
|
||||
Reference in New Issue
Block a user