Fix remaining lint errors
This commit is contained in:
parent
fb83f48adf
commit
b93058b11d
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue