Sha256: c3433e1956a5a2a2e6a03b7f215a80dfe2d09951e37b3475533c2c7f2b58f00d
Contents?: true
Size: 451 Bytes
Versions: 13
Compression:
Stored size: 451 Bytes
Contents
class MyAdmin::ConfigurationsController < MyAdmin::MyAdminController before_filter :add_breadcrumbs def show @condigurations = MyAdmin::Configuration.all end def update MyAdmin::Configuration.find_by_key(params[:pk]).update_attribute(:value, params[:value]) render :nothing => true end private def add_breadcrumbs breadcrumbs.add('my_admin_home', send("#{admin_prefix}_root_path")) end end
Version data entries
13 entries across 13 versions & 1 rubygems