A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Element < ApplicationRecord
|
||||
attr_accessor :checklist_id
|
||||
|
||||
|
|
@ -22,8 +24,8 @@ class Element < ApplicationRecord
|
|||
|
||||
return nil if possible_levels.empty?
|
||||
|
||||
puts possible_levels.inspect
|
||||
puts min_failed
|
||||
Rails.logger.debug possible_levels.inspect
|
||||
Rails.logger.debug min_failed
|
||||
possible_levels[possible_levels.find_index(min_failed) - 1]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue