method
join_scopes
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::Reflection::PolymorphicReflection
join_scopes(table, predicate_builder)public
No documentation available.
# File activerecord/lib/active_record/reflection.rb, line 1006
def join_scopes(table, predicate_builder) # :nodoc:
scopes = @previous_reflection.join_scopes(table, predicate_builder) + super
scopes << build_scope(table, predicate_builder).instance_exec(nil, &source_type_scope)
end