multi_client 1.0.0 → 1.0.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: e0aad312dfaac45befa64752dc639ef151cea896
|
4
|
+
data.tar.gz: ef6961bfb900171c169e0c6323216b43b3796e36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9730d9d7176c30a7b1ec1f8009db1012e2c75a07493b9191df86d4f09898b5b36b7894f90af9e170813d24b41299275a07aa600709364699d4e84fd4f11bed6d
|
7
|
+
data.tar.gz: 1d8c161a1721415b08e38f968b7d32893d1668fd2659f233a4554b5a611567715c235b9044f2c1a009c60cf5be95e8ecefec446fbd0ef44a06f46e985f8f11e0
|
@@ -31,7 +31,7 @@ module MultiClient
|
|
31
31
|
# Experimental
|
32
32
|
# return where(MultiClient::Configuration.foreign_key.to_sym => MultiClient::Configuration.model_name.constantize.current_id) if ['aggregate_column', 'bottom_item', 'scope_for_slug_generator'].include?(caller_locations(1,1)[0].label)
|
33
33
|
|
34
|
-
if ['_create_record', 'scope', 'validate_each', 'eval_scope', '_update_record', 'aggregate_column', 'bottom_item', 'scope_for_slug_generator'].include?(caller_locations(1,1)[0].label)
|
34
|
+
if ['_create_record', 'scope', 'validate_each', 'eval_scope', '_update_record', 'aggregate_column', 'bottom_item', 'scope_for_slug_generator', 'update_counters'].include?(caller_locations(1,1)[0].label)
|
35
35
|
super
|
36
36
|
else
|
37
37
|
raise UnscopedForbiddenError, "Calling unscoped from #{caller_locations(1,1)[0].label} is not allowed to prevent client data leakage"
|
data/lib/multi_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|