reactive-record 0.7.37 → 0.7.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactive_record/server_data_cache.rb +8 -10
- data/lib/reactive_record/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f77d2366d23cd6c8049d86b02edd7a82d5723a2
|
4
|
+
data.tar.gz: dcfd1e30f5e78ef0ff210ba0593eead0ed31d254
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f27b71db22686152ef9638caa65322735ce29901a2122f233bc76f6b6253baea37d4d36e498b9159698d792b64cf5ddae783693e1e9b47c63157acf12c843f8
|
7
|
+
data.tar.gz: ef7a46308444d4793973002f35dbefbf4674675164dd65bc459b0304f6d363117fc7e79621d0dc3f5c3bcd8e14ef3f8b7e9ebd1274c1fa2bca17b46c5b1707cf
|
@@ -186,16 +186,14 @@ module ReactiveRecord
|
|
186
186
|
elsif aggregation = cache_item.aggregation?(method)
|
187
187
|
cache_item.build_new_cache_item(aggregation.mapping.collect { |attribute, accessor| cache_item.value[attribute] }, method, method)
|
188
188
|
else
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
representative
|
198
|
-
end
|
189
|
+
begin
|
190
|
+
cache_item.build_new_cache_item(cache_item.value.send(*method), method, method)
|
191
|
+
rescue Exception => e
|
192
|
+
if cache_item.value and cache_item.value != []
|
193
|
+
ReactiveRecord::Pry::rescued(e)
|
194
|
+
raise e, "ReactiveRecord exception caught when applying #{method} to db object #{cache_item.value}: #{e}", e.backtrace
|
195
|
+
else
|
196
|
+
representative
|
199
197
|
end
|
200
198
|
end
|
201
199
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reactive-record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mitch VanDuyn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|