Sha256: b46f4394e82cb73f437570b9254c4cf1a4e083168fc077f4765c1c1ec65f8c11

Contents?: true

Size: 959 Bytes

Versions: 1

Compression:

Stored size: 959 Bytes

Contents

NotifyUser.setup do |config|

  # Override the email address from which notifications appear to be sent.
  config.mailer_sender = "please-change-me-at-config-initializers-notify-user@example.com"

  # NotifyUser will call this within NotificationsController to ensure the user is authenticated.
  config.authentication_method = :authenticate_user!

  # NotifyUser will call this within NotificationsController to return the current logged in user.
  config.current_user_method = :current_user

  # Override the default notification type
  config.unsubscribable_notifications = ['NewPostNotification']

  # Provider for APNS:
  config.apns_provider = :houston

  # Number of connections Houston will maintain to APNS:
  config.connection_pool_size = 3

  # Time in seconds Houston will wait for a free connection before failing:
  config.connection_pool_timeout = 300

  # Number of times a device can fail to send via APNS:
  config.failure_tolerance = 5

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notify_user-0.0.29 lib/generators/notify_user/install/templates/initializer.rb