Skip to content

Instantly share code, notes, and snippets.

@mpugach
Last active January 26, 2017 14:01
Show Gist options
  • Select an option

  • Save mpugach/2814413a16a58be96a60 to your computer and use it in GitHub Desktop.

Select an option

Save mpugach/2814413a16a58be96a60 to your computer and use it in GitHub Desktop.
Noticeable Rails debug message
# Thanks to http://stackoverflow.com/a/927275/1041467
def debug_msg(msg, title = 'DEBUG')
Rails.logger.debug "\e[5;1;34m#{title}:\e[0m #{msg}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment