Sha256: c4815867cee2d62b9e84b70f6c556c99bc7d064cd058c2d31d48665e7c5c8cfa
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
module Spree module Admin class RejoinerSettingsController < Spree::Admin::BaseController def edit @site_settings = %w[rejoiner_site_id rejoiner_domain rejoiner_api_key] end def update params.each do |name, value| next unless Spree::Config.has_preference? name Spree::Config[name] = value end flash[:success] = Spree.t(:successfully_updated, resource: Spree.t(:rejoiner_settings)) redirect_to edit_admin_rejoiner_settings_path end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_rejoiner-1.0.1 | app/controllers/spree/admin/rejoiner_settings_controller.rb |