Sha256: cf872eefc4c9f4049620c647b60faf5711a97f4fd6a1e93342fee174fe5b7704
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
module ActionDispatch::Routing class Mapper def transit(*args) options = args.extract_options! Transit::Engine.routes.draw do args.map(&:to_s).map(&:pluralize).each do |mod| Transit.add_mapping(mod) resources mod do resources :contexts end end end mount Transit::Engine => (options[:mount_on] || "/transit") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transit-0.0.2 | lib/transit/rails/routing.rb |