Skip to content

Instantly share code, notes, and snippets.

@rcanand
Created July 8, 2010 19:16
Show Gist options
  • Save rcanand/468452 to your computer and use it in GitHub Desktop.
Save rcanand/468452 to your computer and use it in GitHub Desktop.
# in config/initializers/devise.rb
if(ENV["RAILS_ENV"]== "development")
config.confirm_within = 15.days
else
config.confirm_within = 0
end
@rcanand
Copy link
Author

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