mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
9 lines
487 B
Ruby
9 lines
487 B
Ruby
# frozen_string_literal: true
|
|
|
|
default_provider = AuthProvider.find_by(providable_type: DatabaseProvider.name).name
|
|
json.title notification.notification_type
|
|
json.description t('.account_imported_from_PROVIDER_UID_has_completed_its_information_html',
|
|
PROVIDER: notification.attached_object.provider || default_provider,
|
|
UID: notification.attached_object.uid || notification.attached_object.id)
|
|
json.url notification_url(notification, format: :json)
|