Class: UnionOf::Association
- Inherits:
-
ReadonlyAssociation
- Object
- ActiveRecord::Associations::CollectionAssociation
- ReadonlyAssociation
- UnionOf::Association
- Defined in:
- lib/union_of/association.rb
Constant Summary
Constants inherited from ReadonlyAssociation
ReadonlyAssociation::MUTATION_METHODS
Instance Method Summary collapse
- #association_scope ⇒ Object
-
#skip_statement_cache? ⇒ Boolean
doesn’t work with cache.
Methods inherited from ReadonlyAssociation
Instance Method Details
#association_scope ⇒ Object
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 |