cats_core 1.2.12 → 1.2.13

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
  SHA256:
3
- metadata.gz: c6d9c981d6dfe00647462832e97d47af7fc677b5e092a5f675366ae1e49ac8dc
4
- data.tar.gz: b24adf0ed11330190cfd57050c94ead1f871e183339351d2caebcc2b09597536
3
+ metadata.gz: 6029b1cb0b5451bb6ca657e53b8fd719bff7ca250bbf24f59620b645666b7411
4
+ data.tar.gz: 5dbc6423c4779a589adcd093aa093bd235ba36165c9fd44ae2a28baeeafdc88b
5
5
  SHA512:
6
- metadata.gz: 56857803a15398dadccd2396e3a2d1b4124b392258ecc180f678d70ddca5a3dafa7b222774b34a9b2d93e8d23aa928622de3d78772017020c7c67f7996ede95c
7
- data.tar.gz: f7b0c9cdbacfec2c9836a80560b2c93a69281e4be503e850ee433ca64917d1703c4bf83d2d59c668495f93fa4371350e9573569ce87ea5207b45a54a18d8b8ac
6
+ metadata.gz: 8ca3add5b0ade02757372eda5c4c1462f3146080071e8d2bfd01cb782c032666dc1965100bfda15b5537b5f11ce3378ae8071e488eaa9be8e1dd93672cbea059
7
+ data.tar.gz: 5774042cf7bc5d3e518b569a1ad18055596d018b21331555e4cdc6dedc752633b682afaa9691fdaa3794196e677e890272b196076abdf2fa9a6247325a78bc7b
@@ -21,6 +21,8 @@ module Cats
21
21
  def approve(approver)
22
22
  raise(StandardError, 'Request is not open for approval.') unless status == DRAFT
23
23
 
24
+ raise(StandardError, 'Request is empty.') if transport_request_items.count.zero?
25
+
24
26
  self.approved_by = approver
25
27
  self.status = APPROVED
26
28
  save!
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = '1.2.12'.freeze
3
+ VERSION = '1.2.13'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cats_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.12
4
+ version: 1.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.