Module: ConfigurableEngine::ConfigurablesController
- Included in:
- Admin::ConfigurablesController
- Defined in:
- lib/configurable_engine/configurables_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
3 4 5 |
# File 'lib/configurable_engine/configurables_controller.rb', line 3 def show end |
#update ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/configurable_engine/configurables_controller.rb', line 7 def update Configurable.keys.each do |key| Configurable.find_or_create_by_name(key). update_attribute(:value,params[key]) end redirect_to admin_configurable_path end |