Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Latest commit

 

History

History
54 lines (36 loc) · 1.54 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.54 KB

This project is not actively maintained and was intended for an old version of Rails/Device, USE AT YOU OWN RISKS

A devise-active backend for ActiveJob

Adds an activejob backend to devise-async.

Note that did not I push (yet) a pull request to the original devise-async repository because right now the activejob gem breaks compatiliby with older versions of Rails, due to explicit dependency to activesupport 4.1.

Installation

Add this line to your application's Gemfile:

gem 'devise-async-activejob'

And then execute:

$ bundle

Or install it yourself as:

$ gem install devise-async-activejob

Usage

To use the gem you just have to configure devise-async the use the activejob backend. For exemple if you use an initializer:

# config/initializers/devise_async.rb
Devise::Async.setup do |config|
  config.enabled = true
  config.backend = :active_job
  # ...
end

See the docs for devise-async for an exntensive documentation.

Compatibility

This gem has been testing on rails 4.1 with the activejob(0) gem and devise 3. Rails 4.2 still poses issues with devise-async, which I will fix when it releases.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/devise-async-activejob/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request