diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-03 13:03:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-03 13:04:17 +0300 |
commit | a5afc44487c1f49f9e8b2b7749469cefe679f6c6 (patch) | |
tree | db270d5e8125bc2fa99987e7bbc9165d687fa2f8 /app/models | |
parent | 960e4b3e3540de808e8e219f5fbec2df24442184 (diff) |
Add latest changes from gitlab-org/security/gitlab@14-3-stable-ee
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/concerns/diff_positionable_note.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/concerns/diff_positionable_note.rb b/app/models/concerns/diff_positionable_note.rb index cea3c7d119c..b13ca4bf06e 100644 --- a/app/models/concerns/diff_positionable_note.rb +++ b/app/models/concerns/diff_positionable_note.rb @@ -12,6 +12,7 @@ module DiffPositionableNote serialize :change_position, Gitlab::Diff::Position # rubocop:disable Cop/ActiveRecordSerialize validate :diff_refs_match_commit, if: :for_commit? + validates :position, json_schema: { filename: "position", hash_conversion: true } end %i(original_position position change_position).each do |meth| |