summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Neighman <has.sox@gmail.com>2010-06-15 14:23:20 +0800
committerMichael Bleigh <michael@intridea.com>2010-06-22 22:00:45 +0800
commitb6fcd0578041356694251d33cebb47f2547d135b (patch)
tree2d34e26d968e85b01e0682ac36b1535de7cbd236
parenta2e08b0db62ed537c0c6597025dc575f3c227be8 (diff)
downloadhashie-b6fcd0578041356694251d33cebb47f2547d135b.tar.gz
Allow for arguments in to_json
-rw-r--r--lib/hashie/hash.rb4
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