lib/angelo/mustermann.rb in angelo-0.3.2 vs lib/angelo/mustermann.rb in angelo-0.3.3
- old
+ new
@@ -37,14 +37,10 @@
path = ::Mustermann.new path
super path, headers, &block
end
def routes
- @routes ||= {}
- ROUTABLE.each do |m|
- @routes[m] ||= RouteMap.new
- end
- @routes
+ @routes ||= Hash.new{|h,k| h[k] = RouteMap.new}
end
def filter_by which, path, meth
pattern = ::Mustermann.new path
filters[which][pattern] ||= []