cirandas.net

ref: master

plugins/organization_ratings/controllers/organization_ratings_plugin_admin_controller.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
class OrganizationRatingsPluginAdminController < PluginAdminController

  include RatingsHelper
  helper :ratings
  append_view_path File.join(File.dirname(__FILE__) + '/../views')

  def index
  end

  def update
    if env_organization_ratings_config.update(params[:organization_ratings_config])
      session[:notice] = _('Configuration updated successfully.')
    else
      session[:notice] = _('Configuration could not be saved.')
    end
    render :action => 'index'
  end

end