app/models/effective/cpd_cycle.rb in effective_cpd-0.1.5 vs app/models/effective/cpd_cycle.rb in effective_cpd-0.1.6
- old
+ new
@@ -79,10 +79,10 @@
# Cycle
attributes = cycle.dup.attributes.except('title', 'token', 'start_at', 'end_at')
assign_attributes(attributes)
- [:all_steps_content, :sidebar_content, :start_content, :activities_content, :submit_content, :complete_content].each do |rich_text|
+ [:all_steps_content, :sidebar_content, :start_content, :activities_content, :agreements_content, :submit_content, :complete_content].each do |rich_text|
self.send("#{rich_text}=", cycle.send(rich_text))
end
cycle.cpd_rules.each do |rule|
attributes = rule.dup.attributes.except('cpd_cycle_id')