Module: DurationInWords
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/duration_in_words.rb,
lib/duration_in_words/methods.rb,
lib/duration_in_words/version.rb
Defined Under Namespace
Modules: Methods
Constant Summary collapse
- I18N_SCOPE_FULL =
:'duration.in_words.format.full'
- DEFAULT_I18N_SCOPE =
:'duration.in_words.format.compact'
- VERSION =
"0.2.0"
Class Method Summary collapse
Class Method Details
.setup_i18n! ⇒ Object
21 22 23 24 25 26 |
# File 'lib/duration_in_words.rb', line 21 def setup_i18n! locale_files = Dir[File.join File.dirname(__FILE__), "duration_in_words/locales", "*.yml"] I18n.load_path.unshift(*locale_files) I18n.reload! end |