Sha256: b2e5caec168d4b7e5abfcb35c26bc15b9caa66cb53bfa0724e13dc6692a48dcd

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
camaleon_ecommerce-1.2.1 app/controllers/plugins/ecommerce/admin/settings_controller.rb