OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/open_project/a_r_object_cache.rb

15 lines
365 B

module OpenProject
class ARObjectCache
def self.within(&block)
ActiveRecord::Base.extend(::OpenProject::ARObjectCache::ObjectCache) unless ActiveRecord::Base.ancestors.include?(::OpenProject::ARObjectCache::ObjectCache)
block.call
end
module ObjectCache
def find(*args)
binding.pry
super
end
end
end
end