Class: Objectify::Rails::Routing::RouteSet
- Inherits:
-
ActionDispatch::Routing::RouteSet
- Object
- ActionDispatch::Routing::RouteSet
- Objectify::Rails::Routing::RouteSet
- Defined in:
- lib/objectify/rails/routing.rb
Instance Method Summary collapse
Instance Method Details
#draw(&block) ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/objectify/rails/routing.rb', line 87 def draw(&block) clear! unless @disable_clear_and_finalize mapper = Mapper.new(self) if block.arity == 1 mapper.instance_exec(ActionDispatch::Routing::DeprecatedMapper.new(self), &block) else mapper.instance_exec(&block) end finalize! unless @disable_clear_and_finalize nil end |