lib/scrivito/backend/obj_load.rb in scrivito_sdk-1.9.1 vs lib/scrivito/backend/obj_load.rb in scrivito_sdk-1.10.0.rc1
- old
+ new
@@ -1,12 +1,10 @@
module Scrivito
module Backend
module ObjLoad
-class << self
-
- def load(revision, ids)
+ def self.load(revision, ids)
cache = Backend::ObjDataCache.view_for_revision(revision)
missing_ids = []
results_from_cache = ids.map do |id|
result = cache.read_obj(id)
@@ -39,11 +37,9 @@
if raw_data != ObjDataCache::NONEXISTENT_OBJ
Backend::ObjDataFromRest.new(raw_data)
end
end
end
-
-end
end
end
end