Skip to content
Browse files

Update config/initializers/time_formats.rb for Rails 3

  • Loading branch information...
1 parent 544dc27 commit c303fdb0445a899e7df4e2c0de2f4175c6361553 @jasonm jasonm committed
Showing with 6 additions and 5 deletions.
  1. +6 −5 template/files/time_formats.rb
View
11 template/files/time_formats.rb
@@ -1,5 +1,6 @@
-#{ :short_date => "%x", # 04/13/10
-# :long_date => "%a, %b %d, %Y" # Tue, Apr 13, 2010
-#}.each do |k, v|
-# ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.update(k => v)
-#end
+# {
+# :short_date => "%x", # 04/13/10
+# :long_date => "%a, %b %d, %Y" # Tue, Apr 13, 2010
+# }.each do |format_name, format_string|
+# Time::DATE_FORMATS[format_name] = format_string
+# end

0 comments on commit c303fdb

Please sign in to comment.
Something went wrong with that request. Please try again.