Class: Admin::RefineryCoreController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::RefineryCoreController
- Defined in:
- vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
Instance Method Summary collapse
Instance Method Details
#render_flash_messages ⇒ Object
10 11 12 |
# File 'vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb', line 10 def render :partial => "/shared/message" end |
#update_plugin_positions ⇒ Object
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 |