Module: PredictiveLoad::ActiveRecordCollectionObservation::CollectionAssociationNotification
- Defined in:
- lib/predictive_load/active_record_collection_observation.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
59 60 61 |
# File 'lib/predictive_load/active_record_collection_observation.rb', line 59 def self.included(base) base.alias_method_chain :load_target, :notification end |
Instance Method Details
#load_target_with_notification ⇒ Object
63 64 65 66 67 |
# File 'lib/predictive_load/active_record_collection_observation.rb', line 63 def load_target_with_notification notify_collection_observer if find_target? load_target_without_notification end |