lib/dry/behaviour/black_tie.rb in dry-behaviour-0.10.2 vs lib/dry/behaviour/black_tie.rb in dry-behaviour-0.10.3
- old
+ new
@@ -18,10 +18,10 @@
Rails.logger
else
require 'logger'
Logger.new($stdout)
end
- @logger ? @logger : Class.new { def warn(*); end }
+ @logger ? @logger : Class.new { def warn(*); end }.new
end
def protocols
@protocols ||= Hash.new { |h, k| h[k] = h.dup.clear }
end