diff options
author | Daniel Neighman <has.sox@gmail.com> | 2010-06-15 14:23:20 +0800 |
---|---|---|
committer | Michael Bleigh <michael@intridea.com> | 2010-06-22 22:00:45 +0800 |
commit | b6fcd0578041356694251d33cebb47f2547d135b (patch) | |
tree | 2d34e26d968e85b01e0682ac36b1535de7cbd236 | |
parent | a2e08b0db62ed537c0c6597025dc575f3c227be8 (diff) | |
download | hashie-b6fcd0578041356694251d33cebb47f2547d135b.tar.gz |
Allow for arguments in to_json
-rw-r--r-- | lib/hashie/hash.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hashie/hash.rb b/lib/hashie/hash.rb index 906563c..0f87364 100644 --- a/lib/hashie/hash.rb +++ b/lib/hashie/hash.rb @@ -15,8 +15,8 @@ module Hashie 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 |