cats_core 1.2.6 → 1.2.7

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: b102951859559bc96354a41e5dd05582209632d2394b86ba3916100374594706
4
- data.tar.gz: b9f1ea8526f5bca4776f32e7c3a16f6dee1b32ce460e4975eebd693b00d941a9
3
+ metadata.gz: ca3e2b07298417bdd0c747df150ae9a58934408502bb9f7f4725a5c80a823c7f
4
+ data.tar.gz: 3e95c45ac93a996b21bc66488679af6fe02e6867a4443ac585f94c69eea0c79a
5
5
  SHA512:
6
- metadata.gz: 196b1372ef0c79666b491dfc63deedee8c624ae774ee12ef14894f94471be09a6b595ca1e0a483eea5ad01e9a6afb20652aa884adaf7bf383c82be0b270e3537
7
- data.tar.gz: 8e3264080cc5cdfbab53447fc1eb59e7c6354433053d60484b0e056051aeeb35e0961f6dbc91d38a66b5cd5aa76895092cc343b1c8e37ff70c96b913e0ddb7ab
6
+ metadata.gz: 27816ccd1f35816d5fc931e8e4e8fd192189a67f2d92697914cf64826cafeff778a52a305891ab6e8d06f3b71df12cd620907813539188b8dfa53b08aaba35fe
7
+ data.tar.gz: e09c67befdb2122d236d1cbf2bdcb354fedaf48a098b533af46be85e0119b13c582bffe48497a44f20830455d2668ea42e63b95e83aad977a8393e8f6c17da21
@@ -11,6 +11,9 @@ module Cats
11
11
  validates :reference_no, :request_date, :status, presence: true
12
12
  validates :reference_no, uniqueness: true
13
13
  validates :status, inclusion: { in: STATUSES }
14
+
15
+ delegate(:full_name, to: :requested_by, prefix: true)
16
+ delegate(:full_name, to: :approved_by, prefix: true)
14
17
  end
15
18
  end
16
19
  end
@@ -50,6 +50,10 @@ module Cats
50
50
 
51
51
  errors.add(:phone_number, 'must be 10 or 12 digits and should match with local phone pattern')
52
52
  end
53
+
54
+ def full_name
55
+ "#{first_name} #{last_name}"
56
+ end
53
57
  end
54
58
  end
55
59
  end
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = '1.2.6'.freeze
3
+ VERSION = '1.2.7'.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.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.