Sha256: 906e37ac55eafa820f08ecdeb7418960d1030f2b79afac1ef0c7c26628946d40
Contents?: true
Size: 1 KB
Versions: 3
Compression:
Stored size: 1 KB
Contents
module Tako module ActiveRecordExt module CollectionAssociation def self.included(mod) mod.extend(ShardedMethods) mod.sharded_methods :reader, :writer, :ids_reader, :ids_writer, :create, :create!, :build, :any?, :count, :empty?, :first, :include?, :last, :length, :load_target, :many?, :reload, :size, :select, :uniq end end end end ActiveRecord::Associations::CollectionAssociation.class_eval do include Tako::ActiveRecordExt::CollectionAssociation end
Version data entries
3 entries across 3 versions & 1 rubygems