Skip to content

Commit 43e09c0

Browse files
committed
Fix incorrect s/options = {}/options ||= {}
Introduced in rails-api#965, surfaced in rails-api#1041
1 parent f7a1585 commit 43e09c0

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)