Class: Plugins::VzaarUploader::AdminController
- Inherits:
-
CamaleonCms::Apps::PluginsAdminController
- Object
- CamaleonCms::Apps::PluginsAdminController
- Plugins::VzaarUploader::AdminController
- Includes:
- MainHelper
- Defined in:
- app/controllers/plugins/vzaar_uploader/admin_controller.rb
Instance Method Summary collapse
- #index ⇒ Object
-
#save_settings ⇒ Object
save values from settings form.
-
#settings ⇒ Object
show settings form.
Instance Method Details
#index ⇒ Object
3 4 |
# File 'app/controllers/plugins/vzaar_uploader/admin_controller.rb', line 3 def index end |
#save_settings ⇒ Object
save values from settings form
11 12 13 14 15 16 |
# File 'app/controllers/plugins/vzaar_uploader/admin_controller.rb', line 11 def save_settings @plugin.(params[:options]) if params[:options].present? # save option values @plugin.(params[:metas]) if params[:metas].present? # save meta values @plugin.set_field_values(params[:field_options]) if params[:field_options].present? # save custom field values redirect_to url_for(action: :settings), notice: 'Settings Saved Successfully' end |
#settings ⇒ Object
show settings form
7 8 |
# File 'app/controllers/plugins/vzaar_uploader/admin_controller.rb', line 7 def settings end |