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:
@@ -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
-1
@@ -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
|
||||
Reference in New Issue
Block a user