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