
The `BooleanPresenceValidator` is causing issues with Ruby 3.2+ YJIT irregularly. Fixes CODEOCEAN-GQ, fixes CODEOCEAN-GR
15 lines
406 B
Ruby
15 lines
406 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CommunitySolutionContribution < ApplicationRecord
|
|
include Creation
|
|
include Context
|
|
|
|
belongs_to :community_solution
|
|
belongs_to :community_solution_lock
|
|
|
|
validates :proposed_changes, inclusion: [true, false]
|
|
validates :timely_contribution, inclusion: [true, false]
|
|
validates :autosave, inclusion: [true, false]
|
|
validates :working_time, presence: true
|
|
end
|