Sha256: 69ebb87a8c3363606655a920df3ca81a77758c0c49b7347d467bcb9a64574a3a
Contents?: true
Size: 446 Bytes
Versions: 11
Compression:
Stored size: 446 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}_path")) end end
Version data entries
11 entries across 11 versions & 1 rubygems