Sha256: 717b9a0c96be24b16d158023fb6db07bf1920db95d149c68706df7d6189be1eb

Contents?: true

Size: 939 Bytes

Versions: 4

Compression:

Stored size: 939 Bytes

Contents

class SecondLevelCache::ActiveRecord::Railtie < Rails::Railtie
  initializer "second_level_cache.active_record.initialization" do
    ActiveRecord::Base.send(:include, SecondLevelCache::Mixin)
    ActiveRecord::Base.send(:include, SecondLevelCache::ActiveRecord::Base)
    ActiveRecord::Base.send(:extend, SecondLevelCache::ActiveRecord::FetchByUniqKey)
    ActiveRecord::Base.send(:extend, SecondLevelCache::ActiveRecord::MultiReadFromCache)

    ActiveRecord::Base.send(:include, SecondLevelCache::ActiveRecord::Persistence)
    ActiveRecord::Associations::BelongsToAssociation.send(:include, SecondLevelCache::ActiveRecord::Associations::BelongsToAssociation)
    ActiveRecord::Associations::HasOneAssociation.send(:include, SecondLevelCache::ActiveRecord::Associations::HasOneAssociation)
    ActiveRecord::Associations::Preloader::BelongsTo.send(:include, SecondLevelCache::ActiveRecord::Associations::Preloader::BelongsTo)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
second_level_cache-2.1.16 lib/second_level_cache/active_record/railtie.rb
second_level_cache-2.1.15 lib/second_level_cache/active_record/railtie.rb
second_level_cache-2.1.14 lib/second_level_cache/active_record/railtie.rb
second_level_cache-2.1.13 lib/second_level_cache/active_record/railtie.rb