Public Instance methods
each()
Mark model instances retrieved in this call as forbidding lazy loading.
[show source]
# File lib/sequel/plugins/forbid_lazy_load.rb 197 def each 198 if row_proc 199 super do |obj| 200 obj.forbid_lazy_load if obj.is_a?(InstanceMethods) 201 yield obj 202 end 203 else 204 super 205 end 206 end
with_sql_each(sql)
Mark model instances retrieved in this call as forbidding lazy loading.
[show source]
# File lib/sequel/plugins/forbid_lazy_load.rb 209 def with_sql_each(sql) 210 if row_proc 211 super(sql) do |obj| 212 obj.forbid_lazy_load if obj.is_a?(InstanceMethods) 213 yield obj 214 end 215 else 216 super 217 end 218 end
with_sql_first(sql)
Mark model instances retrieved in this call as allowing lazy loading.
[show source]
# File lib/sequel/plugins/forbid_lazy_load.rb 221 def with_sql_first(sql) 222 obj = super 223 obj.allow_lazy_load if obj.is_a?(InstanceMethods) 224 obj 225 end