mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Make config.devise available on config/application.rb
This commit is contained in:
parent
e04c5ba977
commit
d7f614b726
2 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
||||||
* Allow to specify haml in devise_views.
|
* Allow to specify haml in devise_views.
|
||||||
* Compatibility with Datamapper and Mongoid.
|
* Compatibility with Datamapper and Mongoid.
|
||||||
* Allow :unlock_strategy to be :none.
|
* Allow :unlock_strategy to be :none.
|
||||||
|
* Make config.devise available on config/application.rb.
|
||||||
|
|
||||||
* bug fix
|
* bug fix
|
||||||
* Do not allow unlockable strategies based on time to access a controller.
|
* Do not allow unlockable strategies based on time to access a controller.
|
||||||
|
|
|
@ -3,6 +3,8 @@ require 'devise/rails/warden_compat'
|
||||||
|
|
||||||
module Devise
|
module Devise
|
||||||
class Engine < ::Rails::Engine
|
class Engine < ::Rails::Engine
|
||||||
|
config.devise = Devise
|
||||||
|
|
||||||
initializer "devise.add_middleware" do |app|
|
initializer "devise.add_middleware" do |app|
|
||||||
app.config.middleware.use Warden::Manager do |config|
|
app.config.middleware.use Warden::Manager do |config|
|
||||||
Devise.configure_warden(config)
|
Devise.configure_warden(config)
|
||||||
|
|
Loading…
Reference in a new issue