Module: Devise::SecurePassword::Grammar

Defined in:
lib/devise/secure_password/grammar.rb

Instance Method Summary collapse

Instance Method Details

#precise_distance_of_time_in_words(from_time, to_time = 0, options = {}) ⇒ Object

distance_in_words without determiner words: about, almost, over, etc.



7
8
9
10
# File 'lib/devise/secure_password/grammar.rb', line 7

def precise_distance_of_time_in_words(from_time, to_time = 0, options = {})
  precise_options = { scope: :'secure_password.datetime.precise_distance_in_words' }
  distance_of_time_in_words(from_time, to_time, options.merge!(precise_options))
end