effective_cpd 0.5.2 → 0.5.4

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: 50a9a2d9d0cdf10dc7fda7136ef7112c9c6135eb22b02d9016178ed3d64d226f
4
- data.tar.gz: 2476411d5a19d39acf178ff26117108053112babf4d7f09b3a25ddb95e7ce632
3
+ metadata.gz: aa9017248147c4af300594830ead405a65e2730a927643b17c4305e2b4bfed14
4
+ data.tar.gz: e7b981130d75f07009ab9e9230124a4fc8a7945d90d8762b372cdca52d76ecc0
5
5
  SHA512:
6
- metadata.gz: 41956f6320aa98d815c065a397385d2579d82e30328f78406cdf51308608afcd86f907d3f8198822047a8d5d80ae968babb44b7e38624d24900edb2dbeb2cd30
7
- data.tar.gz: 9eaa8765786297555a3fb480fa69afa4112179e7ac822eac0b582eaa1daf5266cd0573d1df81d6a5ffe598fcb20510fd8625ebcc837bf3148fbbd38bc65ab2a9
6
+ metadata.gz: 6e8dd1a783788c1a236b152758ebc10a67f2dcc3d6a3ea23e110400be6314b50a7774de677535fccdd57ef3612f08acfeadea3c475de35ff0c8ac2249b03dc00
7
+ data.tar.gz: 40c86b4159c7ed278fbbf4eeb2197b0b5d5c4e6333c6d06e644589c80ab3699d88eba75b9a07c2d37de79651441374b57a5d9dc8c8814b3f2f5ec157bbff6886
@@ -20,8 +20,6 @@ module Effective
20
20
  amount_label :string # 'hours of committee work', 'hours or work'
21
21
  amount2_label :string # 'CEUs'
22
22
 
23
- date :date
24
-
25
23
  # Whether the user must attach supporting documents
26
24
  requires_upload_file :boolean
27
25
  requires_date :boolean
@@ -3,7 +3,7 @@
3
3
 
4
4
  = effective_form_with(model: [:admin, cpd_cycle], engine: true) do |f|
5
5
  %h2= cpd_category
6
- %p= cpd_category.body
6
+ %p= cpd_category.body.to_s
7
7
  %p= link_to 'Edit Category', edit_path, target: '_blank'
8
8
 
9
9
  = f.fields_for :cpd_rules, cpd_cycle.rule_for(cpd_category) do |fc|
@@ -2,4 +2,4 @@
2
2
  = cpd_audit_level_question
3
3
 
4
4
  - if cpd_audit_level_question.body.present?
5
- = cpd_audit_level_question.body
5
+ = cpd_audit_level_question.body.to_s
@@ -6,16 +6,16 @@
6
6
  %p
7
7
  = cpd_statement_activity
8
8
  %br
9
- %small.text-muted= rule.credit_description
9
+ %small.text-muted= rule.credit_description.to_s
10
10
 
11
11
  - if cpd_activity.body.present?
12
- .mb-3= cpd_activity.body
12
+ .mb-3= cpd_activity.body.to_s
13
13
 
14
14
  - if cpd_statement_activity.is_carry_over?
15
15
  %p
16
16
  %strong Carried Forward From
17
17
  %br
18
- = cpd_statement_activity.original.cpd_statement.cpd_cycle
18
+ = cpd_statement_activity.original.cpd_statement.cpd_cycle.to_s
19
19
 
20
20
  .row.mb-3
21
21
  .col-sm-8
@@ -63,4 +63,4 @@
63
63
  %p
64
64
  %strong Description
65
65
  %br
66
- = cpd_statement_activity.description
66
+ = simple_format(cpd_statement_activity.description.to_s.presence || '-')
@@ -10,18 +10,18 @@
10
10
  %h3= activity
11
11
 
12
12
  - if activity.body.present?
13
- = activity.body
13
+ = activity.body.to_s
14
14
 
15
15
  - if cpd_statement_activity.is_carry_over?
16
16
  .alert.alert-warning
17
17
  This activity is read-only because it was carried forward from
18
- = cpd_statement_activity.original.cpd_statement.cpd_cycle
18
+ = cpd_statement_activity.original.cpd_statement.cpd_cycle.to_s
19
19
 
20
20
  .row.my-3
21
21
  .col-8
22
22
  %strong #{cpd_credits_label.capitalize} Calculation
23
23
  %br
24
- = rule.credit_description
24
+ = rule.credit_description.to_s
25
25
 
26
26
  .col-2.text-center
27
27
  - if f.object.persisted?
@@ -19,13 +19,13 @@
19
19
 
20
20
  .mb-3
21
21
  %strong Description
22
- = category.body
22
+ = category.body.to_s
23
23
 
24
24
  .mb-3
25
25
  %strong #{cpd_credits_label.titleize} Calculation
26
26
  %br
27
- = rule.category_credit_description
28
- = rule.credit_description
27
+ = rule.category_credit_description.to_s
28
+ = rule.credit_description.to_s
29
29
 
30
30
  %div
31
31
  %strong Select an Activity to Continue
@@ -1,3 +1,3 @@
1
1
  module EffectiveCpd
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_cpd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-28 00:00:00.000000000 Z
11
+ date: 2022-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails