activerecord-multi-tenant 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47a1f8686348899edcbff39802df23196a67adae
4
- data.tar.gz: aaf2bcf30117e8de2b7925400215e7f7990a997e
3
+ metadata.gz: aeff78948e2addc557a047bbf14bc9ff8268ba82
4
+ data.tar.gz: 2956b31946178941f0f8b66ed62cff54b7100b60
5
5
  SHA512:
6
- metadata.gz: 60b61705874dfd045cc5dfea6ce5b2ce87e3be49fdf90c46ee97534c85be757a0b481c96a50842bff09917fb2823e01c342c8b57b8255f37f1f5ec9faa791bbd
7
- data.tar.gz: 6bb2620d436d1cdd15d3c9daf40bf54eb9115cb76bcf29181c0befa5b258774fa5fdf1d9765b2b09a3db9f2c24b5dcbfc6fdb934731f33f50568f9bfb11fbf45
6
+ metadata.gz: c92d6c7bee05cd4bc1040387e5484586a435bd6c7f376f8de4747cfa027003f7780538ecceb5b973f4d5b73946646b21e77581a1bda4bfc0dcb131997cad68ff
7
+ data.tar.gz: ad059f082e84e003a5d67506f5a00d555a7098389346263be4148a1f3f11b7c278c253fab2d871ecd080f8ec56f32b64c2d877b54e08d91d96f5df06ae794280
@@ -16,7 +16,7 @@ module MultiTenant
16
16
  end
17
17
 
18
18
  module CopyFromClient
19
- def self.copy_from_client(columns, &block)
19
+ def copy_from_client(columns, &block)
20
20
  conn = connection.raw_connection
21
21
  column_types = columns.map { |c| columns_hash[c.to_s] }
22
22
  helper = MultiTenant::CopyFromClientHelper.new(conn, column_types)
@@ -29,5 +29,5 @@ module MultiTenant
29
29
  end
30
30
 
31
31
  if defined?(ActiveRecord::Base)
32
- ActiveRecord::Base.send(:include, MultiTenant::CopyFromClient)
32
+ ActiveRecord::Base.extend(MultiTenant::CopyFromClient)
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module MultiTenant
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-multi-tenant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Citus Data
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-27 00:00:00.000000000 Z
11
+ date: 2016-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_tenant