Class: LocalizableDb::LocalizableConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/localizable_db/localizable_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLocalizableConfig

Returns a new instance of LocalizableConfig.



24
25
26
27
28
29
30
# File 'lib/localizable_db/localizable_config.rb', line 24

def initialize()
  @attributes_integration = true
  @enable_getters = true
  @enable_i18n_integration = true
  @supported_languages = [I18n.default_locale]
  @default_language = I18n.default_locale
end

Instance Attribute Details

#attributes_integrationObject

Returns the value of attribute attributes_integration.



18
19
20
# File 'lib/localizable_db/localizable_config.rb', line 18

def attributes_integration
  @attributes_integration
end

#default_languageObject

Returns the value of attribute default_language.



22
23
24
# File 'lib/localizable_db/localizable_config.rb', line 22

def default_language
  @default_language
end

#enable_gettersObject

Returns the value of attribute enable_getters.



19
20
21
# File 'lib/localizable_db/localizable_config.rb', line 19

def enable_getters
  @enable_getters
end

#enable_i18n_integrationObject

Returns the value of attribute enable_i18n_integration.



20
21
22
# File 'lib/localizable_db/localizable_config.rb', line 20

def enable_i18n_integration
  @enable_i18n_integration
end

#supported_languagesObject

Returns the value of attribute supported_languages.



21
22
23
# File 'lib/localizable_db/localizable_config.rb', line 21

def supported_languages
  @supported_languages
end