Sha256: f7e3158a05333b69ff66ab45b415a02d443cf5a77ac015db347e3369e7691db2

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

Description:
  This generator will install all the necessary configuration and migration
  files for the devise_tokens gem. See
  https://github.com/lynndylanhurley/devise_tokens for more information.

Arguments:
  USER_CLASS # The name of the class to use for user authentication. Default is
             # 'User'
  MOUNT_PATH # The path at which to mount the authentication routes. Default is
             # 'auth'. More detail documentation is here:
             # https://github.com/lynndylanhurley/devise_tokens#usage-tldr

Example:
  rails generate devise_tokens:install User auth

  This will create:
      config/initializers/devise_tokens.rb
      db/migrate/<%= Time.zone.now.utc.strftime("%Y%m%d%H%M%S") %>_create_devise_tokens_create_users.rb
      app/models/user.rb

  If 'app/models/user.rb' already exists, the following line will be inserted
  after the class definition:
      include DeviseTokens::Concerns::User

  The following line will be inserted into your application controller at
  app/controllers/application_controller.rb:
      include DeviseTokens::Concerns::SetUserByToken

  The following line will be inserted at the top of 'config/routes.rb' if it
  does not already exist:
      mount_devise_tokens_for "User", at: 'auth'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
devise-tokens-1.0.3 lib/generators/devise_tokens/USAGE
devise-tokens-1.0.2 lib/generators/devise_tokens/USAGE
devise-tokens-1.0.1 lib/generators/devise_tokens/USAGE