Skip to content

Commit

Permalink
Use the old hash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
vanstee committed May 22, 2013
1 parent 86d993e commit e005f25
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 e005f25

Please sign in to comment.