lib/happy/controller/routing.rb in happy-0.1.0.pre16 vs lib/happy/controller/routing.rb in happy-0.1.0.pre19
- old
+ new
@@ -32,10 +32,10 @@
request.params[var] = path_match.captures.shift
end
previous_path << remaining_path.shift
end
- serve_or_404! instance_exec(&blk)
+ serve!(instance_exec(&blk)) or raise Errors::NotFound
end
end
end
[:get, :post, :put, :delete].each do |method|