Module: ThinkingSphinx::ActiveRecord::Depolymorph::OverriddenReflection::BuildJoinConstraint
- Defined in:
- lib/thinking_sphinx/active_record/depolymorph/overridden_reflection.rb
Instance Method Summary collapse
Instance Method Details
#build_join_constraint(table, foreign_table) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/thinking_sphinx/active_record/depolymorph/overridden_reflection.rb', line 9 def build_join_constraint(table, foreign_table) super.and( foreign_table[[:foreign_type]].eq( [:class_name].constantize.base_class.name ) ) end |