lib/sitehub/collection/route_collection.rb in sitehub-0.5.0.alpha3 vs lib/sitehub/collection/route_collection.rb in sitehub-0.5.0.alpha4

- old
+ new

@@ -5,10 +5,10 @@ def add(id, route, *_opts) self[id] = route end def valid? - !empty? + !keys.empty? end def resolve(id: nil, env: nil) return values.first unless values.find(&:rule) result = values.find { |route| route.applies?(env) }