Sha256: 9cda0053f8a5fc4a2773a0156f91b41348a6f6f141a607893331b95e60903009

Contents?: true

Size: 344 Bytes

Versions: 10

Compression:

Stored size: 344 Bytes

Contents

module CachedCounts
  class Railtie < ::Rails::Railtie
    initializer 'cached_counts' do |app|
      ActiveSupport.on_load(:active_record) do
        ::ActiveRecord::Relation.send :include, CachedCounts::ActiveRecordRelationMethods
        ::ActiveRecord::Base.send :include, CachedCounts::ActiveRecordBaseMethods
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cached_counts-0.3.0 lib/cached_counts/railtie.rb
cached_counts-0.2.5 lib/cached_counts/railtie.rb
cached_counts-0.2.4 lib/cached_counts/railtie.rb
cached_counts-0.2.3 lib/cached_counts/railtie.rb
cached_counts-0.2.2 lib/cached_counts/railtie.rb
cached_counts-0.2.1 lib/cached_counts/railtie.rb
cached_counts-0.2.0 lib/cached_counts/railtie.rb
cached_counts-0.1.4 lib/cached_counts/railtie.rb
cached_counts-0.1.3 lib/cached_counts/railtie.rb
cached_counts-0.1.2 lib/cached_counts/railtie.rb