Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/imhotep/routes.rb
Instance Method Summary collapse
Instance Method Details
#imhotep(*resources) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/imhotep/routes.rb', line 4 def imhotep(*resources) = resources. resources.each do |resource| [:except] = [:new, :create] [:path] = "#{[:path] || resource}(/*path)/:name" self.resource resource, end end |