Sha256: 16be9b983fe6f0e1e5fe0001931e8db39883e164aba375569c2d1018ef6f769e

Contents?: true

Size: 850 Bytes

Versions: 4

Compression:

Stored size: 850 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(: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.10 lib/second_level_cache/active_record/railtie.rb
second_level_cache-2.1.9 lib/second_level_cache/active_record/railtie.rb
second_level_cache-2.1.8 lib/second_level_cache/active_record/railtie.rb
second_level_cache-2.1.7 lib/second_level_cache/active_record/railtie.rb