ab6bc256eb
When a session is destroyed (user logs out), all devices registered to that session are automatically destroyed, preventing push notifications from being sent to logged-out devices. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
8 lines
161 B
Ruby
8 lines
161 B
Ruby
module Session::Devices
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
has_many :devices, class_name: "ApplicationPushDevice", dependent: :destroy
|
|
end
|
|
end
|