Sha256: 40f2b7097f5773941479077393125591a8ab9a79ec4bcfb066e6213564741e1f

Contents?: true

Size: 392 Bytes

Versions: 5

Compression:

Stored size: 392 Bytes

Contents

class Plugins::Ecommerce::Admin::SettingsController < Plugins::Ecommerce::AdminController
  add_breadcrumb I18n.t("plugins.ecommerce.e_commerce")
  def index
    @setting = current_site.e_settings
  end

  # save settings
  def saved
    current_site.e_settings(params[:setting])
    flash[:notice] = t('camaleon_cms.admin.post_type.message.updated')
    redirect_to action: :index
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
camaleon_ecommerce-2.0.4 app/controllers/plugins/ecommerce/admin/settings_controller.rb
camaleon_ecommerce-2.0.3 app/controllers/plugins/ecommerce/admin/settings_controller.rb
camaleon_ecommerce-2.0.2 app/controllers/plugins/ecommerce/admin/settings_controller.rb
camaleon_ecommerce-2.0.1 app/controllers/plugins/ecommerce/admin/settings_controller.rb
camaleon_ecommerce-2.0.0 app/controllers/plugins/ecommerce/admin/settings_controller.rb