effective_cpd 0.1.4 → 0.1.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c655d5b1c2e948affbfee9558e51b7e66ca5cfd0e43fbf2a58fecc7a3b2d885f
|
4
|
+
data.tar.gz: 06fe0a9add6534d48e5b51055343018c75723fa288f9051666fd29767fab0f86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd95fa02fad56e41914ac568da4cdaf0b2413297a35fbccf4d8c32659d1e2e30c0e474871d33f124a03f7c962372a9136149cd587a520c6c41447e269692901a
|
7
|
+
data.tar.gz: 212aaa715dcee4635d708a579fad03e18bdfd8b253515d2a3b3b2dcaf1419eb7237766c68260d83992c6520d802fc128ebd355537b820578ea823b9362101661
|
@@ -94,6 +94,15 @@ module Effective
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
+
cycle.cpd_special_rules.each do |special_rule|
|
98
|
+
attributes = special_rule.dup.attributes.except('cpd_cycle_id')
|
99
|
+
cpd_special_rule = self.cpd_special_rules.build(attributes)
|
100
|
+
|
101
|
+
special_rule.ruleables.each do |ruleable|
|
102
|
+
cpd_special_rule.cpd_special_rule_mates.build(cpd_rule: self.rule_for(ruleable))
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
97
106
|
self
|
98
107
|
end
|
99
108
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
label: "Max #{cpd_credits_label} per #{cpd_cycle_label}",
|
13
13
|
hint: "The maximum number of #{cpd_credits_label} that may be earned in this category for this #{cpd_cycle_label}. Leave blank for no limit."
|
14
14
|
.col
|
15
|
-
=
|
15
|
+
= fc.select :cpd_special_rule_ids, cpd_cycle.cpd_special_rules, multiple: true,
|
16
16
|
label: 'Special Rules', hint: "Special rules operate on more than one category at a time"
|
17
17
|
|
18
18
|
= fc.rich_text_area :category_credit_description,
|