README.md in clearance-2.5.0 vs README.md in clearance-2.6.0

- old
+ new

@@ -17,11 +17,11 @@ [GitHub Issues]: https://github.com/thoughtbot/clearance/issues [Stack Overflow]: http://stackoverflow.com/questions/tagged/clearance ## Getting Started -Clearance is a Rails engine tested against Rails `>= 5.0` and Ruby `>= 2.4.0`. +Clearance is a Rails engine tested against Rails `>= 6.0` and Ruby `>= 2.7.0`. You can add it to your Gemfile with: ```sh gem "clearance" @@ -64,10 +64,11 @@ config.secure_cookie = false config.signed_cookie = false config.sign_in_guards = [] config.user_model = "User" config.parent_controller = "ApplicationController" + config.sign_in_on_password_reset = false end ``` ## Use @@ -347,9 +348,10 @@ config.sign_in_guards = ["EmailConfirmationGuard"] end ``` ```ruby +# app/guards/email_confirmation_guard.rb class EmailConfirmationGuard < Clearance::SignInGuard def call if unconfirmed? failure("You must confirm your email address.") else