Module: LocalizableDb

Defined in:
lib/localizable_db.rb,
lib/localizable_db/version.rb,
lib/localizable_db/languages.rb,
lib/localizable_db/localizable.rb,
lib/localizable_db/localizable_config.rb,
lib/generators/localizable_db/orm_helper.rb,
lib/generators/localizable_db/model_generator.rb,
lib/generators/localizable_db/install_generator.rb,
lib/generators/localizable_db/migration_generator.rb,
lib/generators/localizable_db/localizable_db_generator.rb

Defined Under Namespace

Modules: Generators, Languages, Localizable Classes: LocalizableConfig

Constant Summary collapse

VERSION =
'2.0.10'

Class Method Summary collapse

Class Method Details

.config {|@@configuration| ... } ⇒ Object

Yields:

  • (@@configuration)


5
6
7
8
9
10
# File 'lib/localizable_db/localizable_config.rb', line 5

def config
  @@configuration ||= LocalizableConfig.new
  yield(@@configuration) if block_given?
  LocalizableDb::Languages.config if block_given?
  @@configuration
end