README.md in clearance-2.6.2 vs README.md in clearance-2.7.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 `>= 6.0` and Ruby `>= 2.7.0`.
+Clearance is a Rails engine tested against Rails `>= 6.1` and Ruby `>= 3.0.0`.
You can add it to your Gemfile with:
```sh
gem "clearance"
@@ -57,10 +57,12 @@
config.routes = true
config.httponly = true
config.mailer_sender = "reply@example.com"
config.password_strategy = Clearance::PasswordStrategies::BCrypt
config.redirect_url = "/"
+ config.url_after_destroy = nil
+ config.url_after_denied_access_when_signed_out = nil
config.rotate_csrf_on_sign_in = true
config.same_site = nil
config.secure_cookie = false
config.signed_cookie = false
config.sign_in_guards = []
@@ -220,13 +222,21 @@
These "failure" methods are called for signed out sessions:
- `application#url_after_denied_access_when_signed_out`
- `sessions#url_after_destroy`
-They both default to `sign_in_url`. Override this method to change both of their
-behavior, or override them individually to just change one.
+You can override the appropriate method in your subclassed controller or you
+can set a configuration value for either of these URLs:
+- `Clearance.configuration.url_after_denied_access_when_signed_out`
+- `Clearance.configuration.url_after_destroy`
+
+Both configurations default to `nil` and if not set will default to
+`sign_in_url` in `sessions_controller.rb` and `authorization.rb` for backwards
+compatibility.
+
+
### Views
See [app/views](/app/views) for the default behavior.
To override a view, create your own copy of it:
@@ -479,23 +489,12 @@
For security issues it's better to contact <security@thoughtbot.com> (See <https://thoughtbot.com/security>)
## License
-Clearance is copyright © 2009-2019 thoughtbot. It is free software, and may be
+Clearance is copyright © 2009 thoughtbot. It is free software, and may be
redistributed under the terms specified in the [`LICENSE`] file.
[`LICENSE`]: /LICENSE
-## About thoughtbot
-
-![thoughtbot](https://thoughtbot.com/brand_assets/93:44.svg)
-
-Clearance is maintained and funded by thoughtbot, inc.
-The names and logos for thoughtbot are trademarks of thoughtbot, inc.
-
-We love open source software!
-See [our other projects][community] or
-[hire us][hire] to design, develop, and grow your product.
-
-[community]: https://thoughtbot.com/community?utm_source=github
-[hire]: https://thoughtbot.com/hire-us?utm_source=github
+<!-- START /templates/footer.md -->
+<!-- END /templates/footer.md -->