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