News for hackers. Stuff that matters.
Re:Crazy, Heretical, and Awesome: The Way I Write Rails Apps by natehop on Wednesday August 03, 2011 @03:21AM (#2840150)
You can accomplish the same thing without resorting to the factory pattern by simply injecting the logging behavior only in your production environment. This strategy provides the same benefit without incurring the overhead of deviating from the "Rails Way" for your development team.

Here is an example of how to do this: https://gist.github.com/1122080

There are no comments on this comment yet.