3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/notifications/helper.rb', line 3
def notifications_for(destination, opts = {})
opts = set_default_options(opts)
content_tag opts[:container], '',
id: 'js-notifications-container',
class: opts[:container_class],
data: {
firebase_project_id: Notifications.configuration.firebase_project_id,
firebase_api_key: Notifications.configuration.firebase_api_key,
destination: destination,
notification_container: opts[:notification_container],
notification_container_class: opts[:notification_container_class],
notification_class: opts[:notification_class]
}
end
|