Sha256: d5911b4054a8978c9e69a4b13c525201b1223d02303df71e2b09b0449fd219dd

Contents?: true

Size: 323 Bytes

Versions: 47

Compression:

Stored size: 323 Bytes

Contents

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

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

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre49 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre48 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre47 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre46 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre45 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre44 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre43 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre42 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre41 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre40 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre39 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre38 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre37 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre36 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre35 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre34 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre33 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre32 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre31 app/controllers/produce_types_controller.rb
enju_biblio-0.1.0.pre30 app/controllers/produce_types_controller.rb