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: 870e44c8e39778573342067fc5f7e1a0b3259418
4
- data.tar.gz: 8f9bcbd1516b65c100eed8497e92ba5fac0eb8bf
3
+ metadata.gz: e0aad312dfaac45befa64752dc639ef151cea896
4
+ data.tar.gz: ef6961bfb900171c169e0c6323216b43b3796e36
5
5
  SHA512:
6
- metadata.gz: 64f12b209c88af029f201321dbc3165a83ea226ae0d5d132e6f4df7588872eca35a61dc4450c05c4428a056bd9b20d0cdaa61dfcff800a1977426835edcf4dd8
7
- data.tar.gz: 0154ef2e3637469500cf8119578e5a0dba4ecce8f0e4df3adb7bf1da4af4bc06714ab31a7b703778ffa5a780d4c79bfc036773a5be98241af29cd570168ee452
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"
@@ -1,3 +1,3 @@
1
1
  module MultiClient
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-09 00:00:00.000000000 Z
11
+ date: 2016-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails