bridge_cache 0.0.16 → 0.0.17

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: aabfd5b6e097a79f0d6e9a801d1b640a93665bb0
4
- data.tar.gz: e86a1c866dd4a53dd2adcfa4f2d5c1bdde3cfac6
3
+ metadata.gz: a4ae83a5c6d7675f766238a2a64395df41e16810
4
+ data.tar.gz: e0921eea8916eadbfe3150efa77cae175e4a7374
5
5
  SHA512:
6
- metadata.gz: d34d52bb7ff2ce2cb3515c3de155876842b6f1e1e5acadb51d5cc6fb90a6e6068e7621173d3663df8eacc018bb2cffde4fdce7d99549396d4735b7b159e0fa0d
7
- data.tar.gz: 45e06a4115b2e60ecd199cc8f470e9fabca9d21de8688c051d64365df367f379433b9513f264317b3cbbca70a0d361cf3cc8332ef333f79ca686fdc3f275cedb
6
+ metadata.gz: 7caddb7e60093a2ac2689b1db92a30c01f15e12b2d50150405b857e0a939edf4a5ac3aa3c90e14e57e8463a47ef2ddfa0bf6626a2d2af4ca10e92368cc412e42
7
+ data.tar.gz: 0514e9eea0548b3fd5d2af2d41b1c349f8a534fb262fa65adf765e5e2383e78867021bb9e625eb8b304a0a9d602da7abe65f9ed64512bfb6e1d99863211041f2
@@ -12,5 +12,9 @@ module BridgeCache
12
12
  def fix_item_type
13
13
  self.item_type = "BridgeCache::#{self.item_type}"
14
14
  end
15
+
16
+ def self.cleanup(current_row_ids)
17
+ BridgeCache::AffiliatedSubAccount.where.not(bridge_id: current_row_ids).destroy_all
18
+ end
15
19
  end
16
20
  end
@@ -1,3 +1,3 @@
1
1
  module BridgeCache
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridge_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - jshaffer