module Polyamorous::ReflectionExtensions
Public Instance Methods
join_scope(table, foreign_table, foreign_klass)
click to toggle source
Calls superclass method
# File lib/polyamorous/activerecord/reflection.rb, line 3 def join_scope(table, foreign_table, foreign_klass) if respond_to?(:polymorphic?) && polymorphic? super.where!(foreign_table[foreign_type].eq(klass.name)) else super end end