Skip to content

Commit

Permalink
include the DateAndtime module properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mattetti committed May 4, 2008
1 parent ec3bf87 commit 6ffb771
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions merb_helpers/lib/merb_helpers/date_time_helpers.rb
Expand Up @@ -55,6 +55,11 @@ def ordinalize
# Time.now.to_ordinalized_s :long
# => "February 28th, 2006 21:10"
module OrdinalizedFormatting

def self.extended(obj)
include Merb::Helpers::DateAndTime
end

def to_ordinalized_s(format = :default)
format = Merb::Helpers::DateAndTime.date_formats[format]
return self.to_s if format.nil?
Expand Down

0 comments on commit 6ffb771

Please sign in to comment.