Sha256: 63df9d1b4f02293dc5d75d4829a631f33ea59c2e7c387cc6926a321e8c4535bc

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 Bytes

Contents

class UseRestrictionsController < InheritedResources::Base
  respond_to :html, :json
  load_and_authorize_resource

  def update
    @use_restriction = UseRestriction.find(params[:id])
    if params[:position]
      @use_restriction.insert_at(params[:position])
      redirect_to use_restrictions_url
      return
    end
    update!
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enju_circulation-0.0.10 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.9 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.8 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.7 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.6 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.4 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.3 app/controllers/use_restrictions_controller.rb