tramway 0.2.1.1 → 0.2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tramway/helpers/decorate_helper.rb +2 -0
- data/lib/tramway/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2dd99c95cb679606a69128eb290b9c35fee411dc626ed2f43a1b3cfcba36efa
|
4
|
+
data.tar.gz: 95ed3ccb11b51c8df14061aa9bc483257da99e05755f06935fd27bfabb3d1393
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d759138c8522fa61b234affae4547f403992ade47ff99413e5abb42cc52101137294dcef77e4f17528d1d6463d8668fa85ef71cd1b0bc6f5042522aa8254fd27
|
7
|
+
data.tar.gz: 2e63cf0b4fa9122c2f0e97aaad067a7b325c5644a4912c1636f4bc247e1f98dada96991ed231c1ab26d404dec0d719c406bacede57e21331576fbb005fdabf9d
|
@@ -8,6 +8,8 @@ module Tramway
|
|
8
8
|
#
|
9
9
|
module DecorateHelper
|
10
10
|
def tramway_decorate(object_or_array, decorator: nil)
|
11
|
+
return [] if Tramway::Decorators::CollectionDecorators.collection?(object_or_array) && object_or_array.empty?
|
12
|
+
|
11
13
|
Tramway::Decorators::ClassHelper.decorator_class(object_or_array, decorator).decorate object_or_array, self
|
12
14
|
end
|
13
15
|
end
|
data/lib/tramway/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.1.
|
4
|
+
version: 0.2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kalashnikovisme
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-07-
|
12
|
+
date: 2023-07-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: haml-rails
|