washout_builder 0.8.11 → 0.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/helpers/washout_builder_helper.rb +3 -1
- data/lib/washout_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTFiNjU5Y2M2NzAzNjg2N2EyYWU1ODU3OWRkZTE2YzAyNjBmNjhlNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmFkMDdmMGZhYTVjOTE4MmNhNjc5ZmUxZmMyYzk2NDk4YzZjNzQ0MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWMxOTFiNzM1Y2VlNDE0ZTU2NDRkYjU0ZTc4YWIzOTA5NTU3ZTJiNGU0YmY3
|
10
|
+
ZDYwOTg5YTQzOWFiNjBjNTU4ZGMyZDlmYjYxNDA1Yjg4YmFhYjJhYWExNTdi
|
11
|
+
NmExZDExZWM0YWY1ZWFkNTA5ZDNkYTk4YjViYTc1YzY0Mjk3Y2M=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Zjc4ZGNiMzg4NzhkNjEyNTZlMzI2YmJmYTU0MzdmNjlkNDMwMGExM2E5MzVk
|
14
|
+
Y2JhY2QxODU3NDliMWE0ZjVmZGVlZDY1YjViYzRiYjZhYTQzNzZjMmQ5M2Nm
|
15
|
+
NzQyZjY3YzYyOTdhZjZhZTUxZjcyNTVmODMwNTc3YWUxOWYzZWI=
|
@@ -44,7 +44,8 @@ module WashoutBuilderHelper
|
|
44
44
|
|
45
45
|
def get_class_ancestors(param,class_name, defined)
|
46
46
|
bool_the_same = false
|
47
|
-
param_class = class_name.is_a?(Class) ? class_name : class_name.constantize
|
47
|
+
param_class = class_name.is_a?(Class) ? class_name : class_name.constantize rescue nil
|
48
|
+
unless param_class.nil?
|
48
49
|
ancestors = (param_class.ancestors - param_class.included_modules).delete_if{ |x| x.to_s.downcase == class_name.to_s.downcase || x.to_s == "ActiveRecord::Base" || x.to_s == "Object" || x.to_s =="BasicObject" || x.to_s == "WashOut::Type" }
|
49
50
|
unless ancestors.blank?
|
50
51
|
ancestor_structure = { ancestors[0].to_s.downcase => ancestors[0].columns_hash.inject({}) {|h, (k,v)| h["#{k}"]="#{v.type}".to_sym; h } }
|
@@ -56,6 +57,7 @@ module WashoutBuilderHelper
|
|
56
57
|
end
|
57
58
|
end
|
58
59
|
ancestors unless bool_the_same
|
60
|
+
end
|
59
61
|
end
|
60
62
|
|
61
63
|
|