Merge pull request #4927 from artoscinote/ma_SCI_7584

Don't touch steps when commenting [SCI-7584]
This commit is contained in:
artoscinote 2023-02-02 16:42:29 +01:00 committed by GitHub
commit dd5c567e50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
class StepComment < Comment
before_create :fill_unseen_by
belongs_to :step, foreign_key: :associated_id, inverse_of: :step_comments, touch: true
belongs_to :step, foreign_key: :associated_id, inverse_of: :step_comments
validates :step, presence: true