start of iteration 2
This commit is contained in:
parent
9fb87a74ce
commit
729ed13521
75 changed files with 705 additions and 170 deletions
|
|
@ -1,14 +1,12 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Element < ApplicationRecord
|
||||
attr_accessor :checklist_id
|
||||
has_rich_text :description
|
||||
|
||||
has_rich_text :description_html
|
||||
|
||||
belongs_to :report, touch: true
|
||||
belongs_to :page, touch: true
|
||||
has_many :success_criteria, dependent: :destroy
|
||||
|
||||
validates :path, :title, presence: true
|
||||
delegate :report, to: :page
|
||||
|
||||
# Calculate actual conformity level:
|
||||
# - if a success_criterion has result :failed -> the confirmity_level
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue