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.8.9 vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.8.8 vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.8.7 vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.8.6 vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.15 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.14 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.8.5 vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.8.4 vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.8.3 vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.8.2 vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.8.1 vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.8 vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.13 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.11 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.10 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.9 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.8 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.7 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.6 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb
refinerycms-0.9.7.5 vendor/plugins/refinery/app/controllers/admin/refinery_core_controller.rb