2020-02-12 09:09:11 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class GlobalNotificationSetting < Entities::NotificationSetting
|
|
|
|
expose :notification_email do |notification_setting, options|
|
2021-09-16 15:12:47 +00:00
|
|
|
notification_setting.user.notification_email_or_default
|
2020-02-12 09:09:11 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|