effective_cpd 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/cpd_statement_activity.rb +1 -1
- data/lib/effective_cpd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168b4998cd7418e64ce7d62bcba5b09c4dc0bfaf65ad54c1c999d63dd35027c5
|
4
|
+
data.tar.gz: 6388aa96a64ea432603d30c52e5dcd481d8df997164be6d9e2f9c3c98116e8d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf76efd6c2501340bc77c922f5125378fc9d60e5d5fd299511e1bac18bf23e4c99e2aac397b0094d7f01de1af434bf6fa71e4dba87d54c2cae597bfc1b9e772
|
7
|
+
data.tar.gz: dc255a5bbbfe0a76bd999af4cb6316355e3afc6d6b4fc8cdd33b2b7b020fa28cb4ec971acdaf012c3f2368cd2068fdc76f1fea6725773b12cf2192dadef63235
|
@@ -38,7 +38,7 @@ module Effective
|
|
38
38
|
validates :original, presence: true, if: -> { carry_over.to_i > 0 }
|
39
39
|
validates :description, presence: true
|
40
40
|
|
41
|
-
validate(if: -> { cpd_statement.present? }) do
|
41
|
+
validate(if: -> { new_record? && cpd_statement.present? }) do
|
42
42
|
self.errors.add(:base, "statement has already been completed") if cpd_statement.completed?
|
43
43
|
self.errors.add(:base, "cycle is unavailable") unless cpd_statement.cpd_cycle.available?
|
44
44
|
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.1.
|
4
|
+
version: 0.1.15
|
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: 2021-
|
11
|
+
date: 2021-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|