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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0101564724b3e7c1f853369dcef804d69e0877bd
4
- data.tar.gz: d7203b89957c7a742fb33bbbde3c24cd86cab3d8
3
+ metadata.gz: 39dca4a25bd8de58b4203b14bb978a0bb36a69be
4
+ data.tar.gz: 2d985edc04fee85c3b16f3b2f32708ecd05c5c05
5
5
  SHA512:
6
- metadata.gz: 8f3a77ae4cc506efa5a926c050262fce00ec3202c4a169701e30b58efbe4f50c2c761e69f16c55698e6ef6f7b0e5e0f00f55fb74b6bb1388f40a0d26581f52e7
7
- data.tar.gz: 2b78778609bc40b8c0f46935870947aa830eaaa5b1745e23ac08843d73ad68037f783180f311a327905c80cb35d0f5db534167c4cf499b19bbc88c15d4fb449f
6
+ metadata.gz: a69991c891c399c7418fb63ce826a11a7230fb83a987cac5db2c4a4965c259c5cb6da6b2314aa3e9ada62e49d861ae4e8b5029e5ca97582d046b38243f34c42b
7
+ data.tar.gz: 43454fb9b11442c19578e8b6f4958df6f34a9aa61b4ae278b09255261d88a5b5e7e6a8c120988d319cf3f96b482d4c36897d93263887cce5d383935bb018fd6e
@@ -1,5 +1,5 @@
1
1
  module Woody
2
2
  module Decorators
3
- VERSION = '7.18.0'.freeze
3
+ VERSION = '7.19.0'.freeze
4
4
  end
5
5
  end
@@ -25,7 +25,12 @@ module Woody
25
25
  end
26
26
 
27
27
  def draft?
28
- @model.status == 'draft' || @model.end_date.nil?
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woody-decorators
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.18.0
4
+ version: 7.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''