mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
added devise-async and configured Devise for email
This commit is contained in:
parent
6a1a1879d3
commit
db83a29911
5 changed files with 8 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -24,6 +24,7 @@ gem 'will_paginate'
|
||||||
gem 'will_paginate-bootstrap'
|
gem 'will_paginate-bootstrap'
|
||||||
gem 'http_accept_language'
|
gem 'http_accept_language'
|
||||||
gem 'devise'
|
gem 'devise'
|
||||||
|
gem 'devise-async'
|
||||||
gem 'bootstrap_form'
|
gem 'bootstrap_form'
|
||||||
gem 'font-kit-rails'
|
gem 'font-kit-rails'
|
||||||
gem 'nprogress-rails'
|
gem 'nprogress-rails'
|
||||||
|
|
|
@ -93,6 +93,8 @@ GEM
|
||||||
responders
|
responders
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
warden (~> 1.2.3)
|
warden (~> 1.2.3)
|
||||||
|
devise-async (0.9.0)
|
||||||
|
devise (~> 3.2)
|
||||||
diff-lcs (1.2.5)
|
diff-lcs (1.2.5)
|
||||||
docile (1.1.5)
|
docile (1.1.5)
|
||||||
dotenv (1.0.2)
|
dotenv (1.0.2)
|
||||||
|
@ -352,6 +354,7 @@ DEPENDENCIES
|
||||||
database_cleaner
|
database_cleaner
|
||||||
delayed_paperclip
|
delayed_paperclip
|
||||||
devise
|
devise
|
||||||
|
devise-async
|
||||||
factory_girl_rails
|
factory_girl_rails
|
||||||
faker
|
faker
|
||||||
font-awesome-rails (~> 4.2.0.0)
|
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,
|
# 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
|
# note that it will be overwritten if you use your own mailer class
|
||||||
# with default "from" parameter.
|
# 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.
|
# Configure the class responsible to send e-mails.
|
||||||
# config.mailer = 'Devise::Mailer'
|
# config.mailer = 'Devise::Mailer'
|
||||||
|
|
1
config/initializers/devise_async.rb
Normal file
1
config/initializers/devise_async.rb
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Devise::Async.backend = :sidekiq
|
|
@ -4,6 +4,8 @@ site_name: "justask"
|
||||||
hostname: "justask.rrerr.net"
|
hostname: "justask.rrerr.net"
|
||||||
https: true
|
https: true
|
||||||
|
|
||||||
|
email_from: "noreply@justask.rrerr.net"
|
||||||
|
|
||||||
# Name of the "Anonymous" user. (e.g. "Anonymous Coward", "Arno Nym", "Mr. X", ...)
|
# Name of the "Anonymous" user. (e.g. "Anonymous Coward", "Arno Nym", "Mr. X", ...)
|
||||||
anonymous_name: "Anonymous"
|
anonymous_name: "Anonymous"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue