aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-05-23 23:49:05 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-05-24 00:41:41 -0500
commitf4d100bb5a93a9370535cb79b1edca659542f9d1 (patch)
treebdfd3c68e710cf88a565c6c3d1f961d8affe3dcb /activesupport
parent647c55ac43bdddc180d92b967089882da9d227cd (diff)
downloadrails-f4d100bb5a93a9370535cb79b1edca659542f9d1.tar.gz
rails-f4d100bb5a93a9370535cb79b1edca659542f9d1.tar.bz2
rails-f4d100bb5a93a9370535cb79b1edca659542f9d1.zip
Prefer each instead of for on activesupport
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/buffered_logger.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb
index 2668087f57..26412cd7f4 100644
--- a/activesupport/lib/active_support/buffered_logger.rb
+++ b/activesupport/lib/active_support/buffered_logger.rb
@@ -77,7 +77,7 @@ module ActiveSupport
# def info
# def warn
# def debug
- for severity in Severity.constants
+ Severity.constants.each do |severity|
class_eval <<-EOT, __FILE__, __LINE__ + 1
def #{severity.downcase}(message = nil, progname = nil, &block) # def debug(message = nil, progname = nil, &block)
add(#{severity}, message, progname, &block) # add(DEBUG, message, progname, &block)