Sha256: ae84e89944ceecf642105936e0b265a9af6effe3649fec65e82b1d1c0f68fc56

Contents?: true

Size: 401 Bytes

Versions: 11

Compression:

Stored size: 401 Bytes

Contents

module Shoppe
  class SettingsController < ApplicationController

    before_filter { @active_nav = :settings }

    def update
      if Shoppe.settings.demo_mode?
        raise Shoppe::Error, t('shoppe.settings.demo_mode_error')
      end

      Shoppe::Setting.update_from_hash(params[:settings].permit!)
      redirect_to :settings, :notice => t('shoppe.settings.update_notice')
    end

  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
shoppe-1.1.2 app/controllers/shoppe/settings_controller.rb
shoppe-1.1.1 app/controllers/shoppe/settings_controller.rb
shoppe-1.1.0 app/controllers/shoppe/settings_controller.rb
shoppe-1.0.9 app/controllers/shoppe/settings_controller.rb
shoppe-1.0.8 app/controllers/shoppe/settings_controller.rb
kylekthompson-shoppe-1.0.7 app/controllers/shoppe/settings_controller.rb
shoppe-1.0.7 app/controllers/shoppe/settings_controller.rb
shoppe-1.0.6 app/controllers/shoppe/settings_controller.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/shoppe-1.0.5/app/controllers/shoppe/settings_controller.rb
shoppe-1.0.5 app/controllers/shoppe/settings_controller.rb
shoppe-1.0.3 app/controllers/shoppe/settings_controller.rb