aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorEugene Kenny <elkenny@gmail.com>2016-08-15 02:43:23 +0100
committerEugene Kenny <elkenny@gmail.com>2016-08-15 02:43:23 +0100
commite8b2e2f41effdc543949e42e301892cb5ff4ee34 (patch)
tree7404d8346af80f1fc999e5ec193344819547f52b /activerecord
parentb6c0bc9c8a6a6dc86b315566e3ab52acc1a5377d (diff)
downloadrails-e8b2e2f41effdc543949e42e301892cb5ff4ee34.tar.gz
rails-e8b2e2f41effdc543949e42e301892cb5ff4ee34.tar.bz2
rails-e8b2e2f41effdc543949e42e301892cb5ff4ee34.zip
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.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/log_subscriber.rb5
1 files changed, 0 insertions, 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>"