We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7a1585 commit 43e09c0Copy full SHA for 43e09c0
lib/active_model/serializer/adapter/json_api.rb
@@ -16,7 +16,7 @@ def initialize(serializer, options = {})
16
end
17
18
def serializable_hash(options = nil)
19
- options = {}
+ options ||= {}
20
if serializer.respond_to?(:each)
21
serializer.each do |s|
22
result = self.class.new(s, @options.merge(fieldset: @fieldset)).serializable_hash(options)
0 commit comments