Sha256: d4c2cc0b09885b2c1b0a17105a0760378c05b3bd03201496680005cb4f84d173

Contents?: true

Size: 421 Bytes

Versions: 9

Compression:

Stored size: 421 Bytes

Contents

module KktShoppe
  class SettingsController < ApplicationController

    before_filter { @active_nav = :settings }

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

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

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kkt_shoppe-2.0.2 app/controllers/kkt_shoppe/settings_controller.rb
kkt_shoppe-2.0.1 app/controllers/kkt_shoppe/settings_controller.rb
kkt_shoppe-2.0.0 app/controllers/kkt_shoppe/settings_controller.rb
kkt_shoppe-1.3.0 app/controllers/kkt_shoppe/settings_controller.rb
kkt_shoppe-1.2.1 app/controllers/kkt_shoppe/settings_controller.rb
kkt_shoppe-1.2.0 app/controllers/kkt_shoppe/settings_controller.rb
kkt_shoppe-1.1.2 app/controllers/kkt_shoppe/settings_controller.rb
kkt_shoppe-1.1.1 app/controllers/kkt_shoppe/settings_controller.rb
kkt_shoppe-1.1.0 app/controllers/kkt_shoppe/settings_controller.rb