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