aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-01-11 20:18:37 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-01-13 00:42:33 +0530
commite6b59432eae0171db2fa39533a334a904c067a20 (patch)
treed4cea16701186984e0c5526fc5b0fbfb443d79be /activesupport/lib/active_support/json
parent8ff8ca7a824d8a50634a233e500ce7ddd87620aa (diff)
downloadrails-e6b59432eae0171db2fa39533a334a904c067a20.tar.gz
rails-e6b59432eae0171db2fa39533a334a904c067a20.tar.bz2
rails-e6b59432eae0171db2fa39533a334a904c067a20.zip
fixes in api docs
Diffstat (limited to 'activesupport/lib/active_support/json')
-rw-r--r--activesupport/lib/active_support/json/encoding.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/json/encoding.rb b/activesupport/lib/active_support/json/encoding.rb
index 925fa2a2c7..4a19387511 100644
--- a/activesupport/lib/active_support/json/encoding.rb
+++ b/activesupport/lib/active_support/json/encoding.rb
@@ -151,8 +151,8 @@ class Object
end
end
-class Struct
- def as_json(options = nil) #:nodoc:
+class Struct #:nodoc:
+ def as_json(options = nil)
Hash[members.zip(values)]
end
end
@@ -281,4 +281,4 @@ class DateTime
strftime('%Y/%m/%d %H:%M:%S %z')
end
end
-end \ No newline at end of file
+end