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

Version Path
enju_subject-0.0.6 app/controllers/classification_types_controller.rb
enju_subject-0.0.5 app/controllers/classification_types_controller.rb
enju_subject-0.0.4 app/controllers/classification_types_controller.rb