Sha256: fc1ff7d0c2f587ff6f3911d2e9cef0287360c08d058c8bfc52f0ef48ed2a0074

Contents?: true

Size: 269 Bytes

Versions: 6

Compression:

Stored size: 269 Bytes

Contents

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

  def update
    if params[:move]
      move_position(@agent_type, params[:move])
      return
    end
    update!
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre55 app/controllers/agent_types_controller.rb
enju_biblio-0.1.0.pre54 app/controllers/agent_types_controller.rb
enju_biblio-0.1.0.pre53 app/controllers/agent_types_controller.rb
enju_biblio-0.1.0.pre52 app/controllers/agent_types_controller.rb
enju_biblio-0.1.0.pre51 app/controllers/agent_types_controller.rb
enju_biblio-0.1.0.pre50 app/controllers/agent_types_controller.rb