Sha256: deceef63ffe32ddeaadb50d6c79c2e58ab4e68873cab404e25c51d691adef5fe

Contents?: true

Size: 319 Bytes

Versions: 40

Compression:

Stored size: 319 Bytes

Contents

class PatronTypesController < InheritedResources::Base
  respond_to :html, :json
  has_scope :page, :default => 1
  load_and_authorize_resource

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

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre22 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre21 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre20 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre19 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre18 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre17 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre16 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre15 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre14 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre13 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre12 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre11 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre10 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre9 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre8 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre7 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre6 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre5 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre4 app/controllers/patron_types_controller.rb
enju_biblio-0.1.0.pre3 app/controllers/patron_types_controller.rb