salesforce-orm 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -3
- data/lib/salesforce-orm/object_base.rb +11 -0
- data/lib/salesforce-orm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c3330fad57d890e8c8a3dd6a21fe89b38a64538
|
4
|
+
data.tar.gz: 6b222d1e83135e92ba7b7d4365e3260c041bd6ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe91c0862dd0b88b228276115cdca066cd4f269dfd04709986e4d93fbc2ac8b2c554b7d3c256ddfb0153a935e00d2441c2cf5c7120dfb88fc6f19b252e031341
|
7
|
+
data.tar.gz: 3fa5d2bfec49d91145a48386c8b381fc3886067fa63fbe0cbb36045caf0f479426c1dcbf781acdb51e6bf7af29853087715cae5d8185041587c0ce87eeda5dd4
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
salesforce-orm (1.2.
|
4
|
+
salesforce-orm (1.2.4)
|
5
5
|
activerecord (~> 3)
|
6
6
|
activerecord-nulldb-adapter (~> 0)
|
7
7
|
restforce (~> 2.5)
|
@@ -25,15 +25,17 @@ GEM
|
|
25
25
|
arel (3.0.3)
|
26
26
|
builder (3.0.4)
|
27
27
|
byebug (9.0.5)
|
28
|
+
concurrent-ruby (1.0.5)
|
28
29
|
diff-lcs (1.3)
|
29
30
|
faraday (0.13.1)
|
30
31
|
multipart-post (>= 1.2, < 3)
|
31
32
|
faraday_middleware (0.12.2)
|
32
33
|
faraday (>= 0.7.4, < 1.0)
|
33
34
|
hashie (3.5.6)
|
34
|
-
i18n (0.
|
35
|
+
i18n (0.9.1)
|
36
|
+
concurrent-ruby (~> 1.0)
|
35
37
|
json (2.1.0)
|
36
|
-
multi_json (1.12.
|
38
|
+
multi_json (1.12.2)
|
37
39
|
multipart-post (2.0.0)
|
38
40
|
rake (10.4.2)
|
39
41
|
restforce (2.5.3)
|
@@ -73,4 +73,15 @@ module SalesforceOrm
|
|
73
73
|
to_h
|
74
74
|
end
|
75
75
|
end
|
76
|
+
|
77
|
+
# Fix for unable to cache object of this class.
|
78
|
+
# This is a temporary solution. Once Restforce::Mash fix this issue, we'll revert this change
|
79
|
+
# WARNING: As of now, you can't do any restforce operation on the object of this class which is fetched from cache
|
80
|
+
def marshal_dump
|
81
|
+
h = to_h
|
82
|
+
h[:attributes] = Restforce::Mash.new(attributes.to_h) if attributes
|
83
|
+
h[:original_object] = Restforce::SObject.new(original_object.to_h) if original_object
|
84
|
+
h[:original_object][:attributes] = Restforce::Mash.new(original_object.attributes.to_h) if original_object && original_object.attributes
|
85
|
+
h
|
86
|
+
end
|
76
87
|
end
|