Skip to content

Commit b4949fb

Browse files
committed
Merge pull request #1049 from bf4/fix_json_api_adapter_serialable_hash
Fix incorrect s/options = {}/options ||= {}
2 parents a3d75c9 + 43e09c0 commit b4949fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_model/serializer/adapter/json_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def initialize(serializer, options = {})
1616
end
1717

1818
def serializable_hash(options = nil)
19-
options = {}
19+
options ||= {}
2020
if serializer.respond_to?(:each)
2121
serializer.each do |s|
2222
result = self.class.new(s, @options.merge(fieldset: @fieldset)).serializable_hash(options)

0 commit comments

Comments
 (0)