Flowdock
method

type_condition

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ClassMethods
type_condition(table = arel_table) 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/inheritance.rb, line 268
        def type_condition(table = arel_table)
          sti_column = table[inheritance_column]
          sti_names  = ([self] + descendants).map(&:sti_name)

          predicate_builder.build(sti_column, sti_names)
        end
Register or log in to add new notes.