effective_cpd 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78d4f1d10a4677a8923a20ee6963d81008ff5b9c159c780b430cb9d1544f28e6
4
- data.tar.gz: db03fa1f6b31fad1d5814f02ef6d6f5845d5b0edd9a065c93a1db858379e6f22
3
+ metadata.gz: b79ba96a9dae1e17abff7271ca62da9cfec647a361e6782c2c0a7dce76c6cef3
4
+ data.tar.gz: 6abd37b65ff6587abfb8c954d22809bfe8df5fdafea5326fc961a8aec5cd9efd
5
5
  SHA512:
6
- metadata.gz: c8edc165c14ee5d5e7608c40d505b871520667b73ab30990d7190b476c53abbc4363e35c5b3513f12c36a8fded06b4f2e94d8866d379b362e2a8a395218d7929
7
- data.tar.gz: d113818c3c472573a3a5cedfda31d80dc9cdab30de236e5c57611968d898d9868b0abe436b075695219fd2c24b9ff98e29179981f906ba377d8025a74eb15839
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", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
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
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.3'
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.3
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-24 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