Skip to content

Instantly share code, notes, and snippets.

@unnu
Created July 15, 2011 13:37
Show Gist options
  • Save unnu/1084701 to your computer and use it in GitHub Desktop.
Save unnu/1084701 to your computer and use it in GitHub Desktop.
Growl Logger for Rails Debug
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