woody-decorators 7.18.0 → 7.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/woody/decorators.rb +1 -1
- data/lib/woody/decorators/brief.rb +6 -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: 39dca4a25bd8de58b4203b14bb978a0bb36a69be
|
4
|
+
data.tar.gz: 2d985edc04fee85c3b16f3b2f32708ecd05c5c05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a69991c891c399c7418fb63ce826a11a7230fb83a987cac5db2c4a4965c259c5cb6da6b2314aa3e9ada62e49d861ae4e8b5029e5ca97582d046b38243f34c42b
|
7
|
+
data.tar.gz: 43454fb9b11442c19578e8b6f4958df6f34a9aa61b4ae278b09255261d88a5b5e7e6a8c120988d319cf3f96b482d4c36897d93263887cce5d383935bb018fd6e
|
data/lib/woody/decorators.rb
CHANGED
@@ -25,7 +25,12 @@ module Woody
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def draft?
|
28
|
-
|
28
|
+
case @model.category
|
29
|
+
when 'brand'
|
30
|
+
@model.status == 'draft' || @model.end_date.nil?
|
31
|
+
when 'squad', 'vidsy'
|
32
|
+
@model.status == 'draft'
|
33
|
+
end
|
29
34
|
end
|
30
35
|
|
31
36
|
def ended?(submission = nil)
|