Sha256: fb1c0984ea4b0d793d4608ab58c0e52bf4f1441d491e3e662bb2a33410a9216e
Contents?: true
Size: 274 Bytes
Versions: 9
Compression:
Stored size: 274 Bytes
Contents
module Polyamorous module ReflectionExtensions 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 end end
Version data entries
9 entries across 8 versions & 2 rubygems