lib/roda/plugins/class_level_routing.rb in roda-1.3.0 vs lib/roda/plugins/class_level_routing.rb in roda-2.0.0
- old
+ new
@@ -68,14 +68,12 @@
super
end
end
module InstanceMethods
- private
-
# If the normal routing tree doesn't handle an action, try each class level route
# to see if it matches.
- def _route(&block)
+ def call
result = super
if result[0] == 404 && (v = result[2]).is_a?(Array) && v.empty?
# Reset the response so it doesn't inherit the status or any headers from
# the original response.