added devise-async and configured Devise for email

This commit is contained in:
nilsding 2015-01-01 17:31:58 +01:00
parent 6a1a1879d3
commit db83a29911
5 changed files with 8 additions and 1 deletions

View File

@ -24,6 +24,7 @@ gem 'will_paginate'
gem 'will_paginate-bootstrap'
gem 'http_accept_language'
gem 'devise'
gem 'devise-async'
gem 'bootstrap_form'
gem 'font-kit-rails'
gem 'nprogress-rails'

View File

@ -93,6 +93,8 @@ GEM
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
devise-async (0.9.0)
devise (~> 3.2)
diff-lcs (1.2.5)
docile (1.1.5)
dotenv (1.0.2)
@ -352,6 +354,7 @@ DEPENDENCIES
database_cleaner
delayed_paperclip
devise
devise-async
factory_girl_rails
faker
font-awesome-rails (~> 4.2.0.0)

View File

@ -10,7 +10,7 @@ Devise.setup do |config|
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
config.mailer_sender = "#{APP_CONFIG['site_name']} <#{APP_CONFIG['email_from']}>"
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'

View File

@ -0,0 +1 @@
Devise::Async.backend = :sidekiq

View File

@ -4,6 +4,8 @@ site_name: "justask"
hostname: "justask.rrerr.net"
https: true
email_from: "noreply@justask.rrerr.net"
# Name of the "Anonymous" user. (e.g. "Anonymous Coward", "Arno Nym", "Mr. X", ...)
anonymous_name: "Anonymous"