effective_cpd 0.6.2 → 0.6.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: 3467acd6a0cdbddd7c8ceead2a658df91d7e81586292dfedf6a0425c6e1dcabf
4
- data.tar.gz: e77588ab1e6c00e0f5592c07f5474c18f88baefe9745c386fbf125399a9ece91
3
+ metadata.gz: b79ba96a9dae1e17abff7271ca62da9cfec647a361e6782c2c0a7dce76c6cef3
4
+ data.tar.gz: 6abd37b65ff6587abfb8c954d22809bfe8df5fdafea5326fc961a8aec5cd9efd
5
5
  SHA512:
6
- metadata.gz: f607f3c6cdccc009d0a1bb9c7ba4b906cb032fdd3d8dac53265c69edbb8e2eaf417bbef9f41340e5a02438e159b04c2ef1de6b92925525352aaea80be8721317
7
- data.tar.gz: d557526675138dfe996256cd90dde78a8e8207a89c861e1f9906cf58d3365c1a84d9dc1908632ccf2d562386a9e062bce55c21baaa95f87dde489148e62f6ee5
6
+ metadata.gz: 0c10181c5acb5d2df06f0812e83cd06b35890e52a719572003ff85680544fe2cc888dc825293704b7ce339fb34cb53b8a138e8374c379331d023c7b62f473515
7
+ data.tar.gz: a9836a26dbdeb3928c3654b2b469d7f22529384829a8b9bec3925da0d3f87cdea5dd35d0885de3d72f6c3f8ed76f31ebb26ca0c0b5be52cfa0212112d6c8e1d4
@@ -57,12 +57,6 @@ module Effective
57
57
  self.errors.add(:base, "cycle is unavailable") unless cpd_statement.cpd_cycle.available?
58
58
  end
59
59
 
60
- def destroy
61
- return false if cpd_statement.completed?
62
- return false unless cpd_statement.cpd_cycle.available?
63
- super
64
- end
65
-
66
60
  def to_s
67
61
  (cpd_activity || 'activity').to_s
68
62
  end
@@ -12,9 +12,8 @@
12
12
  - if resource.cpd_cycle.complete_content.present?
13
13
  .mb-2= resource.cpd_cycle.complete_content.to_s
14
14
 
15
- = link_to "Return to Dashboard", root_path, class: 'btn btn-lg btn-primary mb-4'
15
+ .mb-4= link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
16
16
 
17
17
  = render('effective/cpd_statements/cpd_statement', cpd_statement: resource)
18
18
 
19
- %hr
20
- = link_to "Return to Dashboard", root_path, class: 'btn btn-lg btn-primary'
19
+ = link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
@@ -1,3 +1,3 @@
1
1
  module EffectiveCpd
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.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.6.2
4
+ version: 0.6.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-11-09 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails