Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link
Owner Author

@rcanand 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