Class: Admin::RefineryCoreController

Inherits:
BaseController
  • Object
show all
Defined in:
vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb

Instance Method Summary collapse

Instance Method Details

#render_flash_messagesObject



10
11
12
# File 'vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb', line 10

def render_flash_messages
  render :partial => "/shared/message"
end

#update_plugin_positionsObject



3
4
5
6
7
8
# File 'vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb', line 3

def update_plugin_positions
  params[:menu].each do |plugin_title|
    current_user.plugins.find_by_title(plugin_title).update_attribute(:position, params[:menu].index(plugin_title))
  end
  render :nothing => true
end