Skip to content

Commit

Permalink
added a new date_format initilizer
Browse files Browse the repository at this point in the history
  • Loading branch information
rnhurt committed Jan 11, 2009
1 parent 5d66cbe commit 20fb6b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
DELETEME/*
log/*
tmp/*
rdoc
coverage.data
coverage/*
database.yml
*.sqlite
*.sqlite3
schema.rb
doc/api
.DS_Store
.svn
3 changes: 3 additions & 0 deletions config/initializers/date_format.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(
:due_date => lambda { |time| time.strftime("%a, %b #{time.day.ordinalize}") }
)

0 comments on commit 20fb6b1

Please sign in to comment.