mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 17:51:39 -05:00
17 lines
278 B
Ruby
17 lines
278 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Users::ExportData::Notifications
|
|
def initialize(user)
|
|
@user = user
|
|
end
|
|
|
|
def call
|
|
# Export all notifications for the user
|
|
user.notifications
|
|
.as_json(except: %w[user_id id])
|
|
end
|
|
|
|
private
|
|
|
|
attr_reader :user
|
|
end
|