From 15ab315ff9d43f82c6560ddf8699170d8cbe7be5 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sun, 22 Apr 2012 16:16:53 +0300 Subject: [PATCH] Current Rails version (3) doesn't have RAILS_DEFAULT_LOGGER anymore. log snippet for Rails 3.x, log2 snippet for Rails 2.x --- snippets/ruby.snippets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/ruby.snippets b/snippets/ruby.snippets index 1ae0779..199c1e3 100644 --- a/snippets/ruby.snippets +++ b/snippets/ruby.snippets @@ -673,6 +673,8 @@ snippet i18 snippet ist <%= image_submit_tag("${1:agree.png}", :id => "${2:id}"${3} %> snippet log + Rails.logger.${1:debug} ${2} +snippet log2 RAILS_DEFAULT_LOGGER.${1:debug} ${2} snippet logd logger.debug { "${1:message}" }${2}