Permalink
Browse files

Allow for arguments in to_json

  • Loading branch information...
Daniel Neighman Michael Bleigh
Daniel Neighman authored and Michael Bleigh committed Jun 15, 2010
1 parent a2e08b0 commit b6fcd0578041356694251d33cebb47f2547d135b
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/hashie/hash.rb
View
@@ -15,8 +15,8 @@ def to_hash
end
# The C geneartor for the json gem doesn't like mashies
- def to_json
- to_hash.to_json
+ def to_json(*args)
+ to_hash.to_json(*args)
end
end
end

0 comments on commit b6fcd05

Please sign in to comment.