Module: HumanRoutes::Extensions

Defined in:
lib/human_routes/extensions.rb

Instance Method Summary collapse

Instance Method Details

#route(controller, options = {}, &block) ⇒ Object



5
6
7
8
# File 'lib/human_routes/extensions.rb', line 5

def route(controller, options = {}, &block)
  context = Context.new(self, controller, options)
  context.instance_eval(&block)
end