Skip to content

Commit

Permalink
Merge e005f25 into fd8cb67
Browse files Browse the repository at this point in the history
  • Loading branch information
vanstee committed May 22, 2013
2 parents fd8cb67 + e005f25 commit b8d9fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model/serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def url_options
# Returns a json representation of the serializable
# object including the root.
def as_json(args={})
super(root: args.fetch(:root, options.fetch(:root, root_name)))
super(:root => args.fetch(:root, options.fetch(:root, root_name)))
end

def serialize_object
Expand Down

0 comments on commit b8d9fd9

Please sign in to comment.