Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# in config/initializers/devise.rb
if(ENV["RAILS_ENV"]== "development")
config.confirm_within = 15.days
config.confirm_within = 0
Copy link

rcanand commented Jul 8, 2010

If you use devise based authentication in rails with confirmation, you may want to allow for development users to log in without requiring confirmation. This snippet does the trick (change the number of days to suit your needs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment