Sha256: df4e035de16e361b6ae56369c765143e9f0a0e4054b4c273f8b7808a8d7db4e4
Contents?: true
Size: 550 Bytes
Versions: 10
Compression:
Stored size: 550 Bytes
Contents
class Admin::GeneralSettingsController < Admin::BaseController def update Spree::Config.set(params[:preferences]) respond_to do |format| format.html { redirect_to admin_general_settings_path } end end def dismiss_alert if request.xhr? and params[:alert_id] dismissed = Spree::Config[:dismissed_spree_alerts] || '' Spree::Config.set :dismissed_spree_alerts => dismissed.split(',').push(params[:alert_id]).join(',') filter_dismissed_alerts render :nothing => true end end end
Version data entries
10 entries across 10 versions & 6 rubygems