Module: Sequel::Plugins::ForbidLazyLoad::InstanceMethods

Defined in:
lib/sequel/plugins/forbid_lazy_load.rb

Instance Method Summary collapse

Instance Method Details

#allow_lazy_loadObject

Set this model instance to allow lazy loading of associations.



134
135
136
137
# File 'lib/sequel/plugins/forbid_lazy_load.rb', line 134

def allow_lazy_load
  @forbid_lazy_load = false
  self
end

#forbid_lazy_loadObject

Set this model instance to not allow lazy loading of associations.



140
141
142
143
# File 'lib/sequel/plugins/forbid_lazy_load.rb', line 140

def forbid_lazy_load
  @forbid_lazy_load = true
  self
end