Skip to content

Commit

Permalink
Fix incorrect s/options = {}/options ||= {}
Browse files Browse the repository at this point in the history
Introduced in rails-api#965, surfaced in rails-api#1041
  • Loading branch information
bf4 committed Aug 11, 2015
1 parent f7a1585 commit 43e09c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model/serializer/adapter/json_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(serializer, options = {})
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)
Expand Down

0 comments on commit 43e09c0

Please sign in to comment.