cirandas.net

ref: master

plugins/classify_members/controllers/classify_members_plugin_admin_controller.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
class ClassifyMembersPluginAdminController < PluginsController
  def index
    @settings ||= Noosfero::Plugin::Settings.new(
      environment, ClassifyMembersPlugin, params[:settings]
    )

    if request.post?
      @settings.save!
      redirect_to :controller => 'plugins', :action => 'index'
    end
  end
end