Permalink
Browse files

Slightly faster DateTime#to_json. [#598 state:resolved] [Alex Zepeda]

  • Loading branch information...
1 parent 482e8fe commit 50c73c2dfd0d5eb880426e7bc385bcee004ffe3e @lifo lifo committed with tarmo Jul 14, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/json/encoders/date_time.rb
@@ -8,7 +8,7 @@ def to_json(options = nil)
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

0 comments on commit 50c73c2

Please sign in to comment.