Sha256: 0e7c2ddb815d080c61256b9a2f2152455722f657ced5951810d427476438e87c
Contents?: true
Size: 303 Bytes
Versions: 24
Compression:
Stored size: 303 Bytes
Contents
class Upsert module ActiveRecordUpsert def upsert(selector, setter = {}) ActiveRecord::Base.connection_pool.with_connection do |c| upsert = Upsert.new c, table_name upsert.row selector, setter end end end end ActiveRecord::Base.extend Upsert::ActiveRecordUpsert
Version data entries
24 entries across 24 versions & 1 rubygems