Permalink
Browse files

moved month to date_translation

  • Loading branch information...
1 parent c3ce7b5 commit a93a45179d0557c83ef388779b9a8d89bc290eb7 @cheezy committed Feb 12, 2013
Showing with 9 additions and 4 deletions.
  1. +9 −0 lib/data_magic/date_translation.rb
  2. +0 −4 lib/data_magic/translation.rb
@@ -40,5 +40,14 @@ def yesterday(format = '%D')
yesterday.strftime(format)
end
alias_method :dm_yesterday, :yesterday
+
+ #
+ # return a month
+ #
+ def month
+ randomize(Date::MONTHNAMES[1..-1])
+ end
+ alias_method :dm_month, :month
+
end
end
@@ -247,10 +247,6 @@ def mask(value)
end
alias_method :dm_mask, :mask
- def month
- randomize(Date::MONTHNAMES[1..-1])
- end
-
private
def remove_extension(phone)

0 comments on commit a93a451

Please sign in to comment.