Permalink
Browse files

Fix call to logger.

  • Loading branch information...
1 parent 4f0289f commit 64a2cad5cb2825b9f6fcd96e1b081d78b104736c @mtodd committed Dec 5, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/products.rb
@@ -61,7 +61,7 @@ def check_stock
render_then_call "" do
Product.out_of_stock.each do |product|
# TODO: send mailing with out-of-stock alert
- logger.warn "Product #{product.id} is out of stock!"
+ Merb.logger.warn "Product #{product.id} is out of stock!"
end
end
end

0 comments on commit 64a2cad

Please sign in to comment.