aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-07-14 01:02:07 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-07-14 01:02:07 +0100
commit9783e66cade4d145389cca18fab822f44d03161a (patch)
tree9b995ad7364053d372e0f5a1e969f268c5ee8dcc /activesupport
parent95812d5eafc3b63ce5eeb0748a5d0132f5108b64 (diff)
downloadrails-9783e66cade4d145389cca18fab822f44d03161a.tar.gz
rails-9783e66cade4d145389cca18fab822f44d03161a.tar.bz2
rails-9783e66cade4d145389cca18fab822f44d03161a.zip
Slightly faster DateTime#to_json. [#598 state:resolved] [Alex Zepeda]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/json/encoders/date_time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/json/encoders/date_time.rb b/activesupport/lib/active_support/json/encoders/date_time.rb
index d41c3e9786..a4a5efbfb1 100644
--- a/activesupport/lib/active_support/json/encoders/date_time.rb
+++ b/activesupport/lib/active_support/json/encoders/date_time.rb
@@ -8,7 +8,7 @@ class DateTime
if ActiveSupport.use_standard_json_time_format
xmlschema.inspect
else
- %("#{strftime("%Y/%m/%d %H:%M:%S %z")}")
+ strftime('"%Y/%m/%d %H:%M:%S %z"')
end
end
end