lib/happy/controller/routing.rb in happy-0.1.0.pre11 vs lib/happy/controller/routing.rb in happy-0.1.0.pre12
- old
+ new
@@ -32,13 +32,10 @@
request.params[var] = path_match.captures.shift
end
previous_path << remaining_path.shift
end
- serve! instance_exec(&blk)
-
- # If we get here, #serve decided not to serve.
- raise Errors::NotFound
+ serve_or_404! instance_exec(&blk)
end
end
end
def get(*args, &blk)