Sha256: b9c502e7c0b5eb57a4a72071b3dd1c7a1f3dc4a76c86fc1527aadd8d024c98ea

Contents?: true

Size: 302 Bytes

Versions: 97

Compression:

Stored size: 302 Bytes

Contents

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

  def update
    @use_restriction = UseRestriction.find(params[:id])
    if params[:move]
      move_position(@use_restriction, params[:move])
      return
    end
    update!
  end
end

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre17 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre16 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre15 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre14 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre13 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre12 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre11 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre10 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre9 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre8 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre7 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre6 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre5 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre4 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre3 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre2 app/controllers/use_restrictions_controller.rb
enju_circulation-0.1.0.pre app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.71 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.70 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.69 app/controllers/use_restrictions_controller.rb