Sha256: 707f349bac17369567d37d61ccb383942e73b3af6d55a3e24be71afd02a59026

Contents?: true

Size: 351 Bytes

Versions: 32

Compression:

Stored size: 351 Bytes

Contents

module Admin
  class 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
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
refinerycms-core-1.0.11 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-1.0.10 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-1.0.9 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-1.0.8 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-1.0.7 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-1.0.5 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-1.0.4 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-1.0.3 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-1.0.1 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-1.0.0 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-0.9.9.22 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-0.9.9.21 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-0.9.9.20 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-0.9.9.19 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-0.9.9.18 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-0.9.9.17 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-0.9.9.16 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-0.9.9.15 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-0.9.9.14 app/controllers/admin/refinery_core_controller.rb
refinerycms-core-0.9.9.13 app/controllers/admin/refinery_core_controller.rb