Created
July 15, 2011 13:37
-
-
Save unnu/1084701 to your computer and use it in GitHub Desktop.
Growl Logger for Rails Debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if Rails.env.development? | |
GROWL = Growl.new("127.0.0.1", "ruby-growl", ["ruby-growl Notification"]) | |
GROWL.class_eval do | |
def log(object) | |
GROWL.notify "ruby-growl Notification", "AskWhat Debug", object.inspect | |
Rails.logger.debug { object.inspect } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment