cirandas.net

ref: master

plugins/comment_paragraph/controllers/comment_paragraph_plugin_admin_controller.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
class CommentParagraphPluginAdminController < AdminController
  append_view_path File.join(File.dirname(__FILE__) + '/../views')

  def index
    @settings = Noosfero::Plugin::Settings.new(environment, CommentParagraphPlugin, params[:settings])
    if request.post?
      @settings.save!
      session[:notice] = _('Settings successfuly saved')
    end
  end

end