lib/sitehub/collection/route_collection.rb in sitehub-0.5.0.alpha2 vs lib/sitehub/collection/route_collection.rb in sitehub-0.5.0.alpha3
- old
+ new
@@ -8,10 +8,10 @@
def valid?
!empty?
end
- def resolve(env: nil)
+ def resolve(id: nil, env: nil)
return values.first unless values.find(&:rule)
result = values.find { |route| route.applies?(env) }
result && result.resolve(env: env)
end
end