Sha256: af5d8783605c45bd3a18e64b2e6ca5ac3348a489f30441f177a315cde407aaf1

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

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

  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 app/controllers/plugins/ecommerce/admin/settings_controller.rb