Skip to content

Instantly share code, notes, and snippets.

@saimonmoore
Created December 21, 2012 09:48
Show Gist options
  • Save saimonmoore/4351814 to your computer and use it in GitHub Desktop.
Save saimonmoore/4351814 to your computer and use it in GitHub Desktop.
warn with timestamp
class WarnTS
def self.warn_now(msg='')
msg = Time.now.to_s(:db) + msg
warn msg
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment