Replace BooleanPresenceValidator with InclusionValidator
The `BooleanPresenceValidator` is causing issues with Ruby 3.2+ YJIT irregularly. Fixes CODEOCEAN-GQ, fixes CODEOCEAN-GR
This commit is contained in:
@ -33,7 +33,7 @@ class User < ApplicationRecord
|
||||
end
|
||||
}
|
||||
|
||||
validates :platform_admin, boolean_presence: true
|
||||
validates :platform_admin, inclusion: [true, false]
|
||||
|
||||
def internal_user?
|
||||
is_a?(InternalUser)
|
||||
|
Reference in New Issue
Block a user