From e8b2e2f41effdc543949e42e301892cb5ff4ee34 Mon Sep 17 00:00:00 2001 From: Eugene Kenny Date: Mon, 15 Aug 2016 02:43:23 +0100 Subject: Remove odd ivar from ActiveRecord::LogSubscriber This was used to switch the output colour between log lines, but now the output colour is based on the type of statement being logged instead. --- activerecord/lib/active_record/log_subscriber.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/activerecord/lib/active_record/log_subscriber.rb b/activerecord/lib/active_record/log_subscriber.rb index 20910fbb15..f31931316c 100644 --- a/activerecord/lib/active_record/log_subscriber.rb +++ b/activerecord/lib/active_record/log_subscriber.rb @@ -15,11 +15,6 @@ module ActiveRecord rt end - def initialize - super - @odd = false - end - def render_bind(attr, type_casted_value) value = if attr.type.binary? && attr.value "<#{attr.value_for_database.to_s.bytesize} bytes of binary data>" -- cgit v1.2.3