mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Change BindParam visit method for Dot to a noop
Since BindParam contains no information, treating it like a string adds no useful information to the graph, and results in an invalid label format.
This commit is contained in:
parent
b7e91eff47
commit
63d180c96f
1 changed files with 2 additions and 1 deletions
|
@ -204,7 +204,6 @@ module Arel
|
|||
alias :visit_NilClass :visit_String
|
||||
alias :visit_TrueClass :visit_String
|
||||
alias :visit_FalseClass :visit_String
|
||||
alias :visit_Arel_Nodes_BindParam :visit_String
|
||||
alias :visit_Integer :visit_String
|
||||
alias :visit_Fixnum :visit_String
|
||||
alias :visit_BigDecimal :visit_String
|
||||
|
@ -212,6 +211,8 @@ module Arel
|
|||
alias :visit_Symbol :visit_String
|
||||
alias :visit_Arel_Nodes_SqlLiteral :visit_String
|
||||
|
||||
def visit_Arel_Nodes_BindParam o; end
|
||||
|
||||
def visit_Hash o
|
||||
o.each_with_index do |pair, i|
|
||||
edge("pair_#{i}") { visit pair }
|
||||
|
|
Loading…
Reference in a new issue