1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use __FILE__ and __LINE__ for BufferedLogger severity methods

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2007-10-13 21:40:12 +00:00
parent a8077355ed
commit 01919cee5f

View file

@ -64,11 +64,11 @@ module ActiveSupport
end
for severity in Severity.constants
class_eval <<-EOT
class_eval <<-EOT, __FILE__, __LINE__
def #{severity.downcase}(message = nil, progname = nil, &block)
add(#{severity}, message, progname, &block)
end
def #{severity.downcase}?
#{severity} >= @level
end