mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
Make options param optional
This commit is contained in:
parent
57f1c1b1f9
commit
f385ab05fb
@ -38,7 +38,7 @@ module ActiveModel
|
||||
serializer_class.new(item, scope: scope, key_format: key_format, only: @only, except: @except, polymorphic: @polymorphic, namespace: @namespace)
|
||||
end
|
||||
|
||||
def serializable_object(options)
|
||||
def serializable_object(options={})
|
||||
@object.map do |item|
|
||||
serializer_for(item).serializable_object_with_notification(options)
|
||||
end
|
||||
|
||||
@ -18,7 +18,7 @@ module ActiveModel
|
||||
end
|
||||
end
|
||||
|
||||
def serializable_object_with_notification(options)
|
||||
def serializable_object_with_notification(options={})
|
||||
instrument('!serialize') do
|
||||
serializable_object(options)
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user