Sha256: 43c79793bca7c4e4b7379c6d1c153dbc77317082271f9ee3b439c1996f7f87a2

Contents?: true

Size: 282 Bytes

Versions: 11

Compression:

Stored size: 282 Bytes

Contents

if ENV.key?("MAIL_ERRORS_TO")
  Whatever::Application.config.middleware.use ExceptionNotification::Rack,
    email: {
      email_prefix: "[<%= app_name %> Error] ",
      sender_address: ENV["MAIL_FROM"],
      exception_recipients: ENV["MAIL_ERRORS_TO"].to_s.split(",")
    }
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
anadea-spark-0.5.0 templates/config/initializers/exception_notification.rb.erb
anadea-spark-0.4.4 templates/config/initializers/exception_notification.rb.erb
anadea-spark-0.4.3 templates/config/initializers/exception_notification.rb.erb
anadea-spark-0.4.2 templates/config/initializers/exception_notification.rb.erb
anadea-spark-0.4.1 templates/config/initializers/exception_notification.rb.erb
anadea-spark-0.4.0 templates/config/initializers/exception_notification.rb.erb
anadea-spark-0.3.2 templates/config/initializers/exception_notification.rb.erb
anadea-spark-0.3.1 templates/config/initializers/exception_notification.rb.erb
anadea-spark-0.3.0 templates/config/initializers/exception_notification.rb.erb
anadea-spark-0.2.1 templates/config/initializers/exception_notification.rb.erb
anadea-spark-0.2.0 templates/config/initializers/exception_notification.rb.erb