README.md in devise-4.2.0 vs README.md in devise-4.2.1

- old
+ new

@@ -15,11 +15,11 @@ * Is based on a modularity concept: use only what you really need. It's composed of 10 modules: * [Database Authenticatable](http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/DatabaseAuthenticatable): hashes and stores a password in the database to validate the authenticity of a user while signing in. The authentication can be done both through POST requests or HTTP Basic Authentication. -* [Omniauthable](http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Omniauthable): adds OmniAuth (https://github.com/intridea/omniauth) support. +* [Omniauthable](http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Omniauthable): adds OmniAuth (https://github.com/omniauth/omniauth) support. * [Confirmable](http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Confirmable): sends emails with confirmation instructions and verifies whether an account is already confirmed during sign in. * [Recoverable](http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Recoverable): resets the user password and sends reset instructions. * [Registerable](http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Registerable): handles signing up users through a registration process, also allowing them to edit and destroy their account. * [Rememberable](http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Rememberable): manages generating and clearing a token for remembering the user from a saved cookie. * [Trackable](http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Trackable): tracks sign in count, timestamps and IP address. @@ -41,14 +41,18 @@ https://github.com/plataformatec/devise/wiki/Bug-reports If you have discovered a security related bug, please do *NOT* use the GitHub issue tracker. Send an email to opensource@plataformatec.com.br. -### Mailing list +### StackOverflow and Mailing List -If you have any questions, comments, or concerns, please use the Google Group instead of the GitHub issue tracker: +If you have any questions, comments, or concerns, please use StackOverflow instead of the GitHub issue tracker: +http://stackoverflow.com/questions/tagged/devise + +The deprecated mailing list can still be read on + https://groups.google.com/group/plataformatec-devise ### RDocs You can view the Devise documentation in RDoc format here: @@ -93,11 +97,11 @@ ```ruby gem 'devise' ``` -Run the bundle command to install it. +Then run `bundle install` Next, you need to run the generator: ```console $ rails generate devise:install @@ -177,11 +181,11 @@ ### Configuring Models The Devise method in your models also accepts some options to configure its modules. For example, you can choose the cost of the hashing algorithm with: ```ruby -devise :database_authenticatable, :registerable, :confirmable, :recoverable, stretches: 20 +devise :database_authenticatable, :registerable, :confirmable, :recoverable, stretches: 12 ``` Besides `:stretches`, you can define `:pepper`, `:encryptor`, `:confirm_within`, `:remember_for`, `:timeout_in`, `:unlock_in` among other options. For more details, see the initializer file that was created when you invoked the "devise:install" generator described above. This file is usually located at `/config/initializers/devise.rb`. ### Strong Parameters @@ -445,10 +449,10 @@ Now you are ready to use the `sign_in` and `sign_out` methods on your controller tests: ```ruby sign_in @user -sign_in @user, scope: admin +sign_in @user, scope: :admin ``` If you are testing Devise internal controllers or a controller that inherits from Devise's, you need to tell Devise which mapping should be used before a request. This is necessary because Devise gets this information from the router,