Module: Formed::Relation::Delegation
- Extended by:
- ActiveSupport::Concern
- Included in:
- Formed::Relation
- Defined in:
- lib/formed/relation/delegation.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ClassMethods, ClassSpecificRelation, DelegateCache
Class Method Summary collapse
Class Method Details
.delegated_classes ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/formed/relation/delegation.rb', line 7 def delegated_classes [ Formed::Relation, Formed::Associations::CollectionProxy, Formed::AssociationRelation ] end |
.uncacheable_methods ⇒ Object
15 16 17 18 19 |
# File 'lib/formed/relation/delegation.rb', line 15 def uncacheable_methods @uncacheable_methods ||= ( delegated_classes.flat_map(&:public_instance_methods) - Formed::Relation.public_instance_methods ).to_set.freeze end |