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

Version Path
apispree_core-0.0.0 app/controllers/admin/general_settings_controller.rb
My-Commerce_core-1.1.0 app/controllers/admin/general_settings_controller.rb
My-Commerce_core-1.0.0 app/controllers/admin/general_settings_controller.rb
MyCommerceapi-1.0.0 core/app/controllers/admin/general_settings_controller.rb
MyCommerce-0.0.3 core/app/controllers/admin/general_settings_controller.rb
rfcommerce_core-0.0.3 app/controllers/admin/general_settings_controller.rb
spree_core-0.60.6 app/controllers/admin/general_settings_controller.rb
spree_core-0.60.5 app/controllers/admin/general_settings_controller.rb
spree_core-0.60.4 app/controllers/admin/general_settings_controller.rb
spree_core-0.60.3 app/controllers/admin/general_settings_controller.rb