Sha256: 518854069ccf26f3c1dfb05d27a1cba5ff0963d76482365f46ee7d3f99a33063

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

members = Order.workflow_event_names.inject(Hash.new) do |hash, event_name|
  hash[event_name.to_sym] = :post
  hash
end

ActionController::Routing::Routes.draw do |map|
  map.resources :orders, :member => members, :except => [:new, :create], :has_many => :line_items, :has_many => :notes
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trollied-0.1.3 config/routes.rb
trollied-0.1.2 config/routes.rb
trollied-0.1.1 config/routes.rb
trollied-0.1.0 config/routes.rb