Skip to content

Commit

Permalink
Update config/initializers/time_formats.rb for Rails 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Morrison committed Nov 9, 2010
1 parent 544dc27 commit c303fdb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions 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.