ref: master
plugins/anti_spam/controllers/anti_spam_plugin_admin_controller.rb
1 2 3 4 5 6 7 8 9 10 11 12 |
class AntiSpamPluginAdminController < PluginAdminController append_view_path File.join(File.dirname(__FILE__) + '/../views') def index @settings = Noosfero::Plugin::Settings.new(environment, AntiSpamPlugin, params[:settings]) if request.post? @settings.save! redirect_to :action => 'index' end end end |