Sha256: 7b58ddb14cdbc36f7d692f9c5da0333cc0f6c82f82089ac98cc06d79baba9113

Contents?: true

Size: 290 Bytes

Versions: 11

Compression:

Stored size: 290 Bytes

Contents

class ProduceTypesController < InheritedResources::Base
  respond_to :html, :json
  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

11 entries across 11 versions & 1 rubygems

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