Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prefer each instead of for on activesupport

  • Loading branch information...
commit f4d100bb5a93a9370535cb79b1edca659542f9d1 1 parent 647c55a
@guilleiguaran guilleiguaran authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/buffered_logger.rb
View
2  activesupport/lib/active_support/buffered_logger.rb
@@ -77,7 +77,7 @@ def add(severity, message = nil, progname = nil, &block)
# 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)
Please sign in to comment.
Something went wrong with that request. Please try again.