Module: UnionOf::AssociationExtension

Defined in:
lib/union_of/railtie.rb

Instance Method Summary collapse

Instance Method Details

#scopeObject



60
61
62
63
64
65
66
# File 'lib/union_of/railtie.rb', line 60

def scope
  if reflection.union_of? || reflection.through_union_of?
    UnionOf::Scope.create.scope(self)
  else
    super
  end
end