Rename Push to PushTarget for better readability

PushTarget#push reads more naturally than Push#push. The push target
is the thing that pushes notifications to a specific destination.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Rosa Gutierrez
2026-01-21 19:41:34 +01:00
parent 06c9ece058
commit b5205ce6b2
9 changed files with 37 additions and 38 deletions
@@ -1,5 +1,5 @@
class Notification::NativePushJob < ApplicationJob
def perform(notification)
Notification::Push::Native.new(notification).push
Notification::PushTarget::Native.new(notification).push
end
end
@@ -1,4 +1,4 @@
class Notification::Push::Native < Notification::Push
class Notification::PushTarget::Native < Notification::PushTarget
def self.push_later(notification)
Notification::NativePushJob.perform_later(notification)
end