mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Fix remaining lint errors
This commit is contained in:
parent
fb83f48adf
commit
b93058b11d
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue