Skip to content
Snippets Groups Projects

verander depend_on in array

Merged Henk van der Veen requested to merge hh_multiple_depends_on into main
1 unresolved thread
3 files
+ 10
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -14,11 +14,11 @@ module Quby
trigger_on: true,
shows_questions: [],
hides_questions: [],
depends_on: nil, # used in interface to hide this flag unless the depended on flag is set to true
depends_on: [], # used in interface to hide this flag unless the depended on flag is set to true
default_in_interface: nil) # used in interface to set a default for the flag state,
# does not have an effect outside of the interface
super(key, description_true, description_false, description, internal, trigger_on, shows_questions,
hides_questions, depends_on, default_in_interface)
hides_questions, Array.wrap(depends_on).map(&:to_s), default_in_interface)
ensure_valid_descriptions
end
# rubocop:enable ParameterLists
Loading