Sha256: 77c9754b32185b73e13c7373b814cebeff06bf0409c09d844a2818e20977619b
Contents?: true
Size: 427 Bytes
Versions: 93
Compression:
Stored size: 427 Bytes
Contents
module Tenon class SettingsController < Tenon::BaseController def update authorize! :update, Tenon::MySettings params[:settings].each { |key, value| Tenon::MySettings.send((key + '=').to_sym, value) } flash[:notice] = 'Your settings have been saved.' redirect_to settings_path end def show authorize! :update, Tenon::MySettings @settings = Tenon::MySettings end end end
Version data entries
93 entries across 93 versions & 1 rubygems