Module: Goldiloader::AssociationPatch
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/goldiloader/active_record_patches.rb
Instance Method Summary collapse
Instance Method Details
#auto_include? ⇒ Boolean
113 114 115 116 117 |
# File 'lib/goldiloader/active_record_patches.rb', line 113 def auto_include? # We only auto include associations that don't have in-memory changes since the # Rails association Preloader clobbers any in-memory changes !loaded? && target.blank? && eager_loadable? end |
#fully_load? ⇒ Boolean
119 120 121 |
# File 'lib/goldiloader/active_record_patches.rb', line 119 def fully_load? !loaded? && .fetch(:fully_load) { self.class.default_fully_load } end |