Sha256: 9de1fd0ed8ce448111a3b66b415607c6c2df10d31f8644e787ddfee2938327fc

Contents?: true

Size: 337 Bytes

Versions: 11

Compression:

Stored size: 337 Bytes

Contents

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

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

  def index
    @licenses = @licenses.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/licenses_controller.rb
enju_biblio-0.1.0.pre app/controllers/licenses_controller.rb
enju_biblio-0.0.9 app/controllers/licenses_controller.rb
enju_biblio-0.0.8 app/controllers/licenses_controller.rb
enju_biblio-0.0.7 app/controllers/licenses_controller.rb
enju_biblio-0.0.6 app/controllers/licenses_controller.rb
enju_biblio-0.0.5 app/controllers/licenses_controller.rb
enju_biblio-0.0.4 app/controllers/licenses_controller.rb
enju_biblio-0.0.3 app/controllers/licenses_controller.rb
enju_biblio-0.0.2 app/controllers/licenses_controller.rb
enju_biblio-0.0.1 app/controllers/licenses_controller.rb