pragma-decorator 1.2.0 → 1.3.0
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: 1d247ca8e236d5a993b70a518c5f64fc82e9ed80
|
4
|
+
data.tar.gz: 145c3dbf948aa6bbc8e2d63b2e49126778d417b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55cb0eacc764ba44011b43c0bb9e1203202dc43d7b395379bf016295ba0a268e0c1dcacfe268dd8238d452cd6dbc5d210bec792fb7a1d6dad3d89c9a7ac32ab7
|
7
|
+
data.tar.gz: 105d6b13dbcfa5e31943739840e73c39a0aca84da28a4d248cc97d760f160458fc313d354e7d236b98c44a59017bd3af2428a0868e164d90de1f7f703dc31199
|
@@ -55,7 +55,7 @@ module Pragma
|
|
55
55
|
#
|
56
56
|
# @return [String]
|
57
57
|
def unexpanded_value
|
58
|
-
if decorator_context? || model_reflection.nil?
|
58
|
+
if decorator_context? || model_reflection.nil? || !reflection.options[:optimize]
|
59
59
|
return associated_object&.public_send(associated_object.class.primary_key)
|
60
60
|
end
|
61
61
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pragma-decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|