activerecord-multi-tenant 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeff78948e2addc557a047bbf14bc9ff8268ba82
|
4
|
+
data.tar.gz: 2956b31946178941f0f8b66ed62cff54b7100b60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
32
|
+
ActiveRecord::Base.extend(MultiTenant::CopyFromClient)
|
33
33
|
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.
|
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-
|
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
|