diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-10-19 17:49:36 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2016-10-19 17:49:36 -0700 |
commit | af45bbc3c9413ac44e68a7f9efb3e53f14b9f399 (patch) | |
tree | f51939999c97a09dc8f6873f649169ca0a0c961d /activerecord/lib | |
parent | cd5e4188ee49b77ca10a6fce3d88414ad28aef3d (diff) | |
download | rails-af45bbc3c9413ac44e68a7f9efb3e53f14b9f399.tar.gz rails-af45bbc3c9413ac44e68a7f9efb3e53f14b9f399.tar.bz2 rails-af45bbc3c9413ac44e68a7f9efb3e53f14b9f399.zip |
render_bind should be private
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/log_subscriber.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/activerecord/lib/active_record/log_subscriber.rb b/activerecord/lib/active_record/log_subscriber.rb index ad71c6cde8..ca9143c57d 100644 --- a/activerecord/lib/active_record/log_subscriber.rb +++ b/activerecord/lib/active_record/log_subscriber.rb @@ -15,16 +15,6 @@ module ActiveRecord rt 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>" - else - type_casted_value - end - - [attr.name, value] - end - def sql(event) self.class.runtime += event.duration return unless logger.debug? @@ -52,6 +42,16 @@ module ActiveRecord private + 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>" + else + type_casted_value + end + + [attr.name, value] + end + def colorize_payload_name(name, payload_name) if payload_name.blank? || payload_name == "SQL" # SQL vs Model Load/Exists color(name, MAGENTA, true) |