Module: ModularRoutes::Scopable
- Defined in:
- lib/modular_routes/scopable.rb,
lib/modular_routes/scopable/scope.rb,
lib/modular_routes/scopable/concern.rb,
lib/modular_routes/scopable/resource.rb,
lib/modular_routes/scopable/namespace.rb,
lib/modular_routes/scopable/single_resource.rb
Class Method Summary collapse
Class Method Details
.for(type, *args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/modular_routes/scopable.rb', line 5 def self.for(type, *args) case type when :namespace then Namespace.new(*args) when :resources then Resource.new(*args) when :resource then SingleResource.new(*args) when :scope then Scope.new(*args) when :concern then Concern.new(*args) else raise NotImplementedError end end |