lib/relative_time.rb in relative_time-1.0.0 vs lib/relative_time.rb in relative_time-1.1.0

- old
+ new

@@ -1,9 +1,8 @@ require 'relative_time/in_words' require 'relative_time/version' module RelativeTime - # Your code goes here... - def self.in_words(date_to, date_from = Time.now) - InWords.new.(date_to, date_from) + def self.in_words(date_to, date_from = Time.now, locale: :en) + InWords.new(locale: locale).(date_to, date_from) end end