Sha256: 5b04a28cb8f2eefaeb38c1c19e64dfa98440feaf4f608fc73d3c571a89eb95ad

Contents?: true

Size: 871 Bytes

Versions: 8

Compression:

Stored size: 871 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

end

Version data entries

8 entries across 7 versions & 1 rubygems

Version Path
notify_user-0.3.2 spec/dummy/rails-4.1.0/config/initializers/notify_user.rb
notify_user-0.3.1 lib/generators/notify_user/install/templates/initializer.rb
notify_user-0.3.1 spec/dummy/rails-4.1.0/config/initializers/notify_user.rb
notify_user-0.1.4 lib/generators/notify_user/install/templates/initializer.rb
notify_user-0.1.3 lib/generators/notify_user/install/templates/initializer.rb
notify_user-0.1.2 lib/generators/notify_user/install/templates/initializer.rb
notify_user-0.1.1 lib/generators/notify_user/install/templates/initializer.rb
notify_user-0.0.30 lib/generators/notify_user/install/templates/initializer.rb