lib/cotton_tail/dsl/routes.rb in cotton-tail-0.4.1 vs lib/cotton_tail/dsl/routes.rb in cotton-tail-0.5.0
- old
+ new
@@ -41,10 +41,10 @@
topic.instance_eval(&block)
end
def handle(key, handler = nil, &block)
handler ||= block
- handlers[key] = handler
+ handlers[Route.new(key)] = handler
end
def handlers
@handlers ||= {}
end