Skip to content

Commit

Permalink
メンター登録時は「職業」必須回答項目としない
Browse files Browse the repository at this point in the history
メンター登録ページで「職業」の回答は削除したため
  • Loading branch information
MikotoMakizuru committed Sep 29, 2024
1 parent 94ea524 commit c201fc0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ class User < ApplicationRecord
}
end

with_options if: -> { !adviser? && validation_context != :reset_password && validation_context != :retirement } do
with_options if: -> { !staff? && validation_context != :reset_password && validation_context != :retirement } do
validates :job, presence: true
end

with_options if: -> { !adviser? && validation_context != :reset_password && validation_context != :retirement } do
validates :os, presence: true
end

Expand Down

0 comments on commit c201fc0

Please sign in to comment.