Fix remaining lint errors

This commit is contained in:
Karina Kwiatek 2023-03-05 14:01:56 +01:00
parent fb83f48adf
commit b93058b11d
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ class Comment < ApplicationRecord
validates :content, length: { maximum: 512 }
after_create do
Subscription.subscribe self.user, answer
Subscription.subscribe user, answer
Subscription.notify self, answer
end

View File

@ -32,7 +32,7 @@ class Subscription < ApplicationRecord
{ target_id: source.id, target_type: Comment, recipient_id: s.user_id, new: true, type: Notification::Commented }
end
Notification.insert_all!(notifications)
Notification.insert_all!(notifications) # rubocop:disable Rails/SkipsModelValidations
end
def denotify(source, target)