Sha256: 9eed30c63cd290aa7c839cede3cd410562d93a3291c19c56c11b1bd3021e1067
Contents?: true
Size: 389 Bytes
Versions: 3
Compression:
Stored size: 389 Bytes
Contents
class ClassificationTypesController < InheritedResources::Base respond_to :html, :json load_and_authorize_resource def update @classification_type = ClassificationType.find(params[:id]) if @classification_type and params[:position] @classification_type.insert_at(params[:position]) redirect_to classification_types_url return end update! end end
Version data entries
3 entries across 3 versions & 1 rubygems