Class: Admin::RefineryCoreController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- Admin::RefineryCoreController
- Defined in:
- app/controllers/admin/refinery_core_controller.rb
Instance Method Summary collapse
Instance Method Details
#update_plugin_positions ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'app/controllers/admin/refinery_core_controller.rb', line 3 def update_plugin_positions params[:menu].each_with_index do |plugin_name, index| if (plugin = current_user.plugins.find_by_name(plugin_name)) plugin.update_attribute(:position, index) end end render :nothing => true end |