Method: Sequel::Plugins::ForbidLazyLoad::DatasetMethods#with_sql_first

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

#with_sql_first(sql) ⇒ Object

Mark model instances retrieved in this call as allowing lazy loading.



208
209
210
211
212
# File 'lib/sequel/plugins/forbid_lazy_load.rb', line 208

def with_sql_first(sql)
  obj = super
  obj.allow_lazy_load if obj.is_a?(InstanceMethods)
  obj
end