Sha256: 56cd566e4e2f62089169b1e606cebec1a873d723bcc9761d64c8497ad89888d1

Contents?: true

Size: 365 Bytes

Versions: 11

Compression:

Stored size: 365 Bytes

Contents

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

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

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