Module: Scrooge::Optimizations::Associations::InstanceMethods
- Defined in:
- lib/optimizations/associations/macro.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#load_target_with_scrooge ⇒ Object
note AssociationCollection has its own version of load_target, but we don’t do collections at the moment anyway.
Class Method Details
.included(base) ⇒ Object
62 63 64 |
# File 'lib/optimizations/associations/macro.rb', line 62 def self.included( base ) base.alias_method_chain :load_target, :scrooge end |
Instance Method Details
#load_target_with_scrooge ⇒ Object
note AssociationCollection has its own version of load_target, but we don’t do collections at the moment anyway
69 70 71 72 |
# File 'lib/optimizations/associations/macro.rb', line 69 def load_target_with_scrooge scrooge_seen_association!(@reflection.name) load_target_without_scrooge end |