Sha256: 675251fd62a3ab99915e10169678636f2eaa41a9a78fdb72a9ca3f44c8dbae35
Contents?: true
Size: 307 Bytes
Versions: 2
Compression:
Stored size: 307 Bytes
Contents
class Upsert module ActiveRecordUpsert def upsert(selector, document = {}) ActiveRecord::Base.connection_pool.with_connection do |c| upsert = Upsert.new c, table_name upsert.row selector, document end end end end ActiveRecord::Base.extend Upsert::ActiveRecordUpsert
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
upsert-0.4.0 | lib/upsert/active_record_upsert.rb |
upsert-0.3.4 | lib/upsert/active_record_upsert.rb |