mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fix incorrect s/options = {}/options ||= {}
Introduced in #965, surfaced in #1041
This commit is contained in:
parent
f7a1585b75
commit
43e09c03de
@ -16,7 +16,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def serializable_hash(options = nil)
|
||||
options = {}
|
||||
options ||= {}
|
||||
if serializer.respond_to?(:each)
|
||||
serializer.each do |s|
|
||||
result = self.class.new(s, @options.merge(fieldset: @fieldset)).serializable_hash(options)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user