lib/ensurance/date.rb in ensurance-0.1.0 vs lib/ensurance/date.rb in ensurance-0.1.1
- old
+ new
@@ -1,8 +1,9 @@
+require 'active_support/core_ext/date'
module Ensurance
- class Date
+ module Date
FORMATS = %w|%m/%d/%Y %Y/%m/%d|.freeze
def self.ensure(thing)
case thing.class.name
when "NilClass"
nil
@@ -38,5 +39,7 @@
end
end
end
end
end
+
+::Date.include Ensurance::Date
\ No newline at end of file