Skip to content

Instantly share code, notes, and snippets.

@senny
Created November 9, 2013 19:36
Show Gist options
  • Save senny/7388965 to your computer and use it in GitHub Desktop.
Save senny/7388965 to your computer and use it in GitHub Desktop.
diff --git a/activerecord/lib/active_record/log_subscriber.rb b/activerecord/lib/active_record/log_subscriber.rb
index 927fbab..3100638 100644
--- a/activerecord/lib/active_record/log_subscriber.rb
+++ b/activerecord/lib/active_record/log_subscriber.rb
@@ -22,6 +22,7 @@ module ActiveRecord
def render_bind(column, value)
if column
+ value = value[:value] if value.is_a?(Hash)
if column.binary?
value = "<#{value.bytesize} bytes of binary data>"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment