method

predicates_unreferenced_by

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: WhereClause
predicates_unreferenced_by(other) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/where_clause.rb, line 159
        def predicates_unreferenced_by(other)
          referenced_columns = other.referenced_columns

          predicates.reject do |node|
            attr = extract_attribute(node) || begin
              node.left if equality_node?(node) && node.left.is_a?(Arel::Predications)
            end

            attr && referenced_columns[attr]
          end
        end
Register or log in to add new notes.