Skip to content

Commit

Permalink
#67 Upgrade devise-async gem so that we can define delayed_job priori…
Browse files Browse the repository at this point in the history
…ty in it.

- Upgraded devise async gem to the github tag v0.10.0-alpha.
- Set Devise::Async.priority to -1.
  • Loading branch information
prashant-1989 committed Apr 30, 2015
1 parent ccf164c commit 734789a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ gem 'jbuilder', '~> 1.2'
gem 'devise', '3.4.1'

# for sending devise emails in background
gem 'devise-async'
gem 'devise-async', github: 'mhfs/devise-async', tag: 'v0.10.0-alpha'

# for background job processing
gem 'delayed_job_active_record'
Expand Down
12 changes: 9 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ GIT
ransack (~> 1.3)
sass-rails

GIT
remote: git://github.com/mhfs/devise-async.git
revision: d5ae22ad6ab5e8b74c733048481436975dcc362f
tag: v0.10.0-alpha
specs:
devise-async (0.9.0)
devise (~> 3.2)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -102,8 +110,6 @@ GEM
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
devise-async (0.9.0)
devise (~> 3.2)
docile (1.1.5)
email_validator (1.5.0)
activemodel
Expand Down Expand Up @@ -296,7 +302,7 @@ DEPENDENCIES
delayed_job_active_record
delayed_job_web (>= 1.2.0)
devise (= 3.4.1)
devise-async
devise-async!
email_validator
font-awesome-sass (~> 4.3.0)
haml-rails
Expand Down
5 changes: 4 additions & 1 deletion config/initializers/devise_async.rb
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
Devise::Async.backend = :delayed_job
Devise::Async.setup do |config|
config.backend = :delayed_job
config.priority = -1
end

0 comments on commit 734789a

Please sign in to comment.