Sha256: b8f2392977eb7caf5dfd5b14b3f435fc99bba639c6c8178b53db6a0a8a85892e
Contents?: true
Size: 365 Bytes
Versions: 1
Compression:
Stored size: 365 Bytes
Contents
module ActionDispatch::Routing class Mapper def transit(*models) options = models.extract_options! Transit::Engine.routes.draw do models.map(&:to_s).map(&:pluralize).each do |mod| resources mod, :controller => "#{mod}" 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.1 | lib/transit/rails/routing.rb |