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.0.27 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.26 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.25 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.24 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.23 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.22 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.21 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.20 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.19 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.18 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.17 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.16 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.15 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.14 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.13 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.12 app/controllers/use_restrictions_controller.rb
enju_circulation-0.0.11 app/controllers/use_restrictions_controller.rb