Skip to content
showing a bug with overriding find_first_by_auth_conditions and using request keys
Ruby JavaScript CoffeeScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
spec
test
vendor
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Bug Description:

With two devise models [User and Admin] User can not override find_first_by_auth_conditions(conditions) if the request_keys option is set in the user model (or in devise.rb)

This bug ONLY happens when there two devise models in the application.

To see the difference.

rake db:create db:migrate
rspec

The test should fail

if in app/models/user.rb, you commment out line reset_password_keys:[:email, :subdomain], the test passes!

Something went wrong with that request. Please try again.