Sha256: 4a9effc7aea6bacc9cf6c92f598f3a00edb1a61e23815a03e9ee9fbf458777f1
Contents?: true
Size: 404 Bytes
Versions: 11
Compression:
Stored size: 404 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_attributes :position => index end end render :nothing => true end end end end
Version data entries
11 entries across 11 versions & 1 rubygems