Class: UnionOf::Association

Inherits:
ReadonlyAssociation
  • Object
show all
Defined in:
lib/union_of/association.rb

Constant Summary

Constants inherited from ReadonlyAssociation

ReadonlyAssociation::MUTATION_METHODS

Instance Method Summary collapse

Methods inherited from ReadonlyAssociation

#count_records, #reader

Instance Method Details

#association_scopeObject



9
10
11
12
13
14
# File 'lib/union_of/association.rb', line 9

def association_scope
  return if
    klass.nil?

  @association_scope ||= UnionOf::Scope.create.scope(self)
end

#skip_statement_cache?Boolean

doesn’t work with cache



8
# File 'lib/union_of/association.rb', line 8

def skip_statement_cache?(...) = true # doesn't work with cache