lib/human_routes/extensions.rb in human_routes-0.0.3 vs lib/human_routes/extensions.rb in human_routes-0.0.4
- old
+ new
@@ -1,14 +1,10 @@
# frozen_string_literal: true
module HumanRoutes
module Extensions
def route(controller, options = {}, &block)
- context = Context.new(controller, options)
+ context = Context.new(self, controller, options)
context.instance_eval(&block)
-
- context.routes.each do |route|
- match(*route)
- end
end
end
end