Fix incorrect s/options = {}/options ||= {}

Introduced in #965, surfaced in #1041
This commit is contained in:
Benjamin Fleischer 2015-08-11 17:08:09 -05:00
parent f7a1585b75
commit 43e09c03de

View File

@ -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)