Skip to content

Commit

Permalink
Merge pull request #1049 from bf4/fix_json_api_adapter_serialable_hash
Browse files Browse the repository at this point in the history
Fix incorrect s/options = {}/options ||= {}
  • Loading branch information
joaomdmoura committed Aug 12, 2015
2 parents a3d75c9 + 43e09c0 commit b4949fb
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 b4949fb

Please sign in to comment.