Sha256: 4a7c32f75113fe14f24072ad18815f09310d7aa694e58d45b80f8b278fbfef24

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

module Refinery
  module Admin
    class CoreController < ::Refinery::AdminController
      def update_plugin_positions
        params[:menu].each_with_index do |plugin_name, index|
          if (plugin = current_refinery_user.plugins.find_by_name(plugin_name))
            plugin.update_attribute(:position, index)
          end
        end
        render :nothing => true
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-core-2.0.5 app/controllers/refinery/admin/core_controller.rb
refinerycms-core-2.0.4 app/controllers/refinery/admin/core_controller.rb
refinerycms-core-2.0.3 app/controllers/refinery/admin/core_controller.rb