graph_starter 0.7.1 → 0.7.2
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: 2ba39a8bf4b8f837b968c093923dca37474fa52d
|
4
|
+
data.tar.gz: 9d5467ecf2e9dd763aa582ed4c772b6d30ca4ad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5a2117422be0c98f4474ff04e55ee1ab725be9232c1df9d18a5977062dc8088c63b2f9ec7963fdacaf6cc07e46ee467aaab94e0898b46517ab49f1cdf04714b
|
7
|
+
data.tar.gz: 7acdf172f6e9bebafe591ded966bcdab595be6303b10ca76ff6e219089b99eee3e11ba4e3f305fb1e2b903d894fa476a80f56ab7a5df5b39bfc73e373253e980
|
@@ -35,7 +35,7 @@ module GraphStarter
|
|
35
35
|
associations = []
|
36
36
|
associations << model_class.image_association
|
37
37
|
associations << model_class.category_association
|
38
|
-
associations.compact
|
38
|
+
associations.compact!
|
39
39
|
|
40
40
|
scope = model_class_scope(var)
|
41
41
|
scope = yield scope if block_given?
|
@@ -48,9 +48,7 @@ module GraphStarter
|
|
48
48
|
scope
|
49
49
|
end
|
50
50
|
|
51
|
-
|
52
|
-
asset_scope_filter.call(scope)
|
53
|
-
end
|
51
|
+
asset_scope_filter ? asset_scope_filter.call(scope) : scope
|
54
52
|
end
|
55
53
|
|
56
54
|
def show
|
@@ -25,7 +25,10 @@
|
|
25
25
|
.content
|
26
26
|
- categories[0,2].each do |category|
|
27
27
|
.extra.content
|
28
|
-
|
28
|
+
- if (category.class.has_images? || category.class.has_image?) && category.first_image_source_url.present?
|
29
|
+
= image_tag category.first_image_source_url, class: 'ui avatar image'
|
30
|
+
- else
|
31
|
+
i class="#{category.class.icon_class || 'folder'} icon"
|
29
32
|
= link_to category.name, asset_path(category)
|
30
33
|
- if categories.size > 2
|
31
34
|
.extra.content
|