Class: SystemSetting
- Inherits:
-
Object
- Object
- SystemSetting
- Defined in:
- lib/kete_translatable_content/extensions/models/system_setting.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.update_translatables ⇒ Object
7 8 9 |
# File 'lib/kete_translatable_content/extensions/models/system_setting.rb', line 7 def self.update_translatables Kete.translatable_system_settings.each { |name| SystemSetting.find_by_name(name).make_translatable } end |
Instance Method Details
#make_translatable ⇒ Object
10 11 12 |
# File 'lib/kete_translatable_content/extensions/models/system_setting.rb', line 10 def make_translatable update_attributes!(:takes_translations => true) end |