Sha256: db0c369bcaf8466e6113a2f1c8679623d9b2f19c4c0fb63f11c96821d26872e3
Contents?: true
Size: 900 Bytes
Versions: 3
Compression:
Stored size: 900 Bytes
Contents
#= Loading Components # Create Logger ThreeDCachingLog = Logger.new(STDOUT) #== ModelFragments # add desc here require "three_d/model_fragments" ActiveRecord::Base.send(:include, ThreeD::ModelFragments) ThreeDCachingLog.info "Loaded 3D::ModelFragments" #== Once! # Define which methods of a instance only should be computed once require "three_d/once" ActiveRecord::Base.send(:include, ThreeD::Once) ThreeDCachingLog.info "Loaded 3D::Once!" #== ClassMethodCache # Not finished yet, memcache support required # require "three_d/class_method_cache" # ActiveRecord::Base.send(:include, ThreeD::ClassMethodCache) # Fix the Cache File path so ist dont use crazy hashed file- and folder names ActiveSupport::Cache::FileStore.module_eval do def key_file_path(key) File.join(cache_path, key.to_s) + '.cache' end end ThreeDCachingLog.info "Fixed ActiveSupport::Cache::FileStore#key_file_path"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
3d_cache-0.0.021 | lib/3d_cache.rb |
3d_cache-0.0.02a | lib/3d_cache.rb |
3d_cache-0.0.01a | lib/3d_cache.rb |