module HstoreTranslations
Constants
- VERSION
Public Class Methods
fallbacks(for_locale = locale)
click to toggle source
# File lib/hstore_translations.rb, line 10 def fallbacks(for_locale = locale) I18n.respond_to?(:fallbacks) ? I18n.fallbacks[for_locale] : default_fallbacks(for_locale) end
Private Class Methods
default_fallbacks(for_locale)
click to toggle source
# File lib/hstore_translations.rb, line 16 def default_fallbacks(for_locale) [for_locale.to_sym, default_locale].uniq end