diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-24 08:07:49 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-24 08:07:49 -0700 |
commit | 408bbdcda15a5086033d78edc56fb364d88af368 (patch) | |
tree | be46a238cf92fcec860f5189c9fcb3143340929d /activesupport | |
parent | 67e12eb3780cb1265671406ff742a0b0cd0d82b4 (diff) | |
parent | f4d100bb5a93a9370535cb79b1edca659542f9d1 (diff) | |
download | rails-408bbdcda15a5086033d78edc56fb364d88af368.tar.gz rails-408bbdcda15a5086033d78edc56fb364d88af368.tar.bz2 rails-408bbdcda15a5086033d78edc56fb364d88af368.zip |
Merge pull request #1267 from guilleiguaran/prefer-each-syntax
Prefer 'each' syntax instead of 'for in'
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/buffered_logger.rb | 2 |
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) |