Created
July 8, 2010 19:16
-
-
Save rcanand/468452 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in config/initializers/devise.rb | |
if(ENV["RAILS_ENV"]== "development") | |
config.confirm_within = 15.days | |
else | |
config.confirm_within = 0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)