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