fakecrm 0.9.9.1 → 0.9.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fakecrm/fetch.rb +1 -1
- data/lib/fakecrm/resource/views/resource_view.rb +1 -1
- data/lib/fakecrm/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: b4243b3d84c8bf9185cfb014c6b746d81a346941
|
4
|
+
data.tar.gz: 0b523fb5f92c63c3d5c494f1332ffccb9a39dfe1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6409aee45e645eda6a1eb00c11cc8ed3cbe485eb4d2dd7afeeecdc4f428d84a5ac115816499cb206d8a88db435f1fef46a0bbc8dadd015ff2016b9f5413446be
|
7
|
+
data.tar.gz: 5507bfe68a96f31be706b9d6c80f660be8267f22ca15f4a774412bfc125e1e658d8760475999b63196b0d2ed7c687ba6972a5a051fe5f7bc58a772b27d91806a
|
data/lib/fakecrm/fetch.rb
CHANGED
@@ -99,7 +99,7 @@ module Fakecrm
|
|
99
99
|
query_options.merge!(order)
|
100
100
|
end
|
101
101
|
|
102
|
-
result = {:results => query.all(query_options), :total => total_count}
|
102
|
+
result = {:results => ResourceView.decorate(query.all(query_options)), :total => total_count}
|
103
103
|
|
104
104
|
if remaining_count > limit
|
105
105
|
result["continuation_handle"] = build_continuation
|
@@ -75,7 +75,7 @@ module Fakecrm
|
|
75
75
|
|
76
76
|
def get_custom_attributes(resource)
|
77
77
|
if resource.respond_to?(:one_of_a_kind?) && resource.one_of_a_kind?
|
78
|
-
CustomType.get!(resource.kind).custom_attributes.map
|
78
|
+
CustomType.get!(resource.kind).custom_attributes.map { |attr| :"custom_#{attr.name}" }
|
79
79
|
else
|
80
80
|
get_resource_properties(resource).select {|property| property =~ /^custom/ }
|
81
81
|
end
|
data/lib/fakecrm/version.rb
CHANGED