edit comment and pdf export
This commit is contained in:
parent
110d75f2b7
commit
c36230b8ba
10 changed files with 90 additions and 19 deletions
|
|
@ -15,6 +15,8 @@ class Element < ApplicationRecord
|
|||
attachable.variant :thumbnail, resize_to_limit: [ 200, 200 ]
|
||||
end
|
||||
|
||||
scope :failed, -> { where(SuccessCriterion.where(result: SuccessCriterion.results[:failed]).arel.exists) }
|
||||
|
||||
# Calculate actual conformity level:
|
||||
# - if a success_criterion has result :failed -> the confirmity_level
|
||||
# of that success_criterion is not reached.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue