mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Make MockLogger work with blocks.
This commit is contained in:
parent
66d0be64b8
commit
a8f568e1ec
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ module ActiveSupport
|
|||
@logged = Hash.new { |h,k| h[k] = [] }
|
||||
end
|
||||
|
||||
def method_missing(level, message)
|
||||
def method_missing(level, message = nil)
|
||||
if block_given?
|
||||
@logged[level] << yield
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue