Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with devise #643

Closed
yovasx2 opened this issue May 18, 2016 · 2 comments
Closed

Error with devise #643

yovasx2 opened this issue May 18, 2016 · 2 comments

Comments

@yovasx2
Copy link

yovasx2 commented May 18, 2016

I'm using Devise Token Auth gem and, everytime I run my test suite in Rails 4.2.5 app, I'm getting this deprecation warning from Devise:

DEPRECATION WARNING: [Devise] config.email_regexp will have a new default on Devise 4.1 To keep the current behavior please set in your config/initializers/devise.rb the following:

Devise.setup do |config|
   config.email_regexp = /\A[^@\s]+@([^@\s]+\.)+[^@\W]+\z/
end

If you want to use the new default:

Devise.setup do |config|
   config.email_regexp = /\A[^@\s]+@[^@\s]+\z/
end

(called from block in tsort_each at /usr/local/lib/ruby/2.2.0/tsort.rb:226)
I've already added config/initializers/devise.rb file manually and have set email_regex as suggested by the message above, but the annoying message persists.

How can I disable this message?

@RobAWilkinson
Copy link

Not a full fix but this SO answer hid the deprecation warning for me

@yovasx2
Copy link
Author

yovasx2 commented May 31, 2016

In fact that's my answer

@yovasx2 yovasx2 closed this as completed May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants