public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Search Repo:
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
technoweenie (author)
Wed Feb 13 10:12:12 -0800 2008
commit  2772ec18227b04b3cb618748a2900a7b93b84d94
tree    4381c9dcb98d67e4ad78416831a93b6afdb80cdc
parent  1cd5005248cd280b894971da122345a1616d280f parent  b9b07612fbb61a73530bd0920ef62ddbddfb2aa7
mephisto / app / controllers / admin / plugins_controller.rb
100644 24 lines (19 sloc) 0.495 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class Admin::PluginsController < Admin::BaseController
  before_filter :find_plugin, :except => :index
 
  def index
    @plugins = Mephisto::DirectoryPlugin.scan
  end
  
  def update
    @plugin.options = params[:options]
    @plugin.save!
    
    redirect_to :action => "show", :id => params[:id]
  end
  
  def destroy
    @plugin.destroy
    redirect_to :action => "show", :id => params[:id]
  end
  
  protected
    def find_plugin
      @plugin = Mephisto::Plugin[params[:id]]
    end
end