method

table_name_matches?

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: ActiveRecord::QueryMethods
table_name_matches?(from) 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/query_methods.rb, line 1327
      def table_name_matches?(from)
        table_name = Regexp.escape(table.name)
        quoted_table_name = Regexp.escape(connection.quote_table_name(table.name))
        /(?:\A|(?<!FROM)\s)(?:\b#{table_name}\b|#{quoted_table_name})(?!\.)/.match?(from.to_s)
      end
Register or log in to add new notes.