Module: LocalizableDb::Languages
- Included in:
- Generators::OrmHelper
- Defined in:
- lib/localizable_db/languages.rb
Class Method Summary collapse
Class Method Details
.config ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/localizable_db/languages.rb', line 4 def config const_set("DEFAULT", LocalizableDb.configuration.default_language.to_sym || I18n.default_locale ) const_set( "SUPPORTED", (LocalizableDb.configuration.supported_languages.map do |language| language.to_sym end | [LocalizableDb.configuration.default_language.to_sym].flatten) ) const_set( "NOT_DEFAULT", (SUPPORTED - [DEFAULT]) ) end |