added devise-async and configured Devise for email
This commit is contained in:
parent
6a1a1879d3
commit
db83a29911
1
Gemfile
1
Gemfile
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Devise::Async.backend = :sidekiq
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue