Sha256: e93411c94e8d448edabafb36c45ab37f09c98abac01c151398a43cd945ddf852

Contents?: true

Size: 331 Bytes

Versions: 11

Compression:

Stored size: 331 Bytes

Contents

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

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

  def index
    @extents = @extents.page(params[:page])
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre2 app/controllers/extents_controller.rb
enju_biblio-0.1.0.pre app/controllers/extents_controller.rb
enju_biblio-0.0.9 app/controllers/extents_controller.rb
enju_biblio-0.0.8 app/controllers/extents_controller.rb
enju_biblio-0.0.7 app/controllers/extents_controller.rb
enju_biblio-0.0.6 app/controllers/extents_controller.rb
enju_biblio-0.0.5 app/controllers/extents_controller.rb
enju_biblio-0.0.4 app/controllers/extents_controller.rb
enju_biblio-0.0.3 app/controllers/extents_controller.rb
enju_biblio-0.0.2 app/controllers/extents_controller.rb
enju_biblio-0.0.1 app/controllers/extents_controller.rb