Class: Plugins::VzaarUploader::AdminController

Inherits:
CamaleonCms::Apps::PluginsAdminController
  • Object
show all
Includes:
MainHelper
Defined in:
app/controllers/plugins/vzaar_uploader/admin_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
# File 'app/controllers/plugins/vzaar_uploader/admin_controller.rb', line 3

def index
end

#save_settingsObject

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.set_options(params[:options]) if params[:options].present? # save option values
  @plugin.set_metas(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

#settingsObject

show settings form



7
8
# File 'app/controllers/plugins/vzaar_uploader/admin_controller.rb', line 7

def settings
end