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

Version Path
my_admin-0.1.13 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.12 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.11 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.10 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.9 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.8 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.7 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.6 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.5 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.4 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.3 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.2 app/controllers/my_admin/configurations_controller.rb
my_admin-0.1.1 app/controllers/my_admin/configurations_controller.rb