lib/to_duration.rb in to_duration-1.2.0 vs lib/to_duration.rb in to_duration-1.2.1
- old
+ new
@@ -1,3 +1,9 @@
require 'to_duration/version'
require 'to_duration/duration'
require_relative 'numeric'
+
+module ToDuration
+ def self.t(key, options = {})
+ I18n.t("to_duration.#{key}", options)
+ end
+end