Sha256: e3499facfccf88eebd83451aa694efbe29431b8ef832cde41183347c59a14c42

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

module ::Refinery
  module Admin
    class RefineryCoreController < ::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.2 app/controllers/refinery/admin/refinery_core_controller.rb
refinerycms-core-2.0.1 app/controllers/refinery/admin/refinery_core_controller.rb
refinerycms-core-2.0.0 app/controllers/refinery/admin/refinery_core_controller.rb