Skip to content
Snippets Groups Projects

Allow outcome_table to be set to nil to hide values from outcome tables

Merged Jorn van de Beek requested to merge jb_outcome_table_nil into main
All threads resolved!
4 files
+ 16
3
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -16,7 +16,8 @@ module Quby
attribute :calculation_key?, Types::Symbol
# [Optional argument] The name of the outcome table where this subscore should be shown. Used for cases where scores
# differ in subscores too much to be shown as one table. By default, all scores end up in the `:main` table.
attribute :outcome_table, Types::Symbol.default(:main).meta(omittable: true)
# When outcome_table is explicitly nil, the value should not be shown in outcome tables
attribute :outcome_table, Types::Symbol.optional.default(:main)
end
end
end
Loading