Sha256: c5e61baedf74c641ab6a31bc172e4fc0cb9a2299f9cc494d3ca6170b8eedfeda

Contents?: true

Size: 399 Bytes

Versions: 25

Compression:

Stored size: 399 Bytes

Contents

class Admin::RefineryCoreController < Admin::BaseController

  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

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

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
refinerycms-0.9.7.4 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.3 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.2 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.1 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb