Sha256: 5eff7d07369cf97813ae121407489e32a002ae9bcbe0e6411d3f2948ca523c8d

Contents?: true

Size: 1.26 KB

Versions: 10

Compression:

Stored size: 1.26 KB

Contents

Description:
  This generator will install all the necessary configuration and migration
  files for the devise_token_auth gem. See
  https://github.com/lynndylanhurley/devise_token_auth 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://devise-token-auth.gitbook.io/devise-token-auth/usage

Example:
  rails generate devise_token_auth:install User auth

  This will create:
      config/initializers/devise_token_auth.rb
      db/migrate/<%= Time.zone.now.utc.strftime("%Y%m%d%H%M%S") %>_create_devise_token_auth_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 DeviseTokenAuth::Concerns::User

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

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

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
devise_token_auth-1.2.4 lib/generators/devise_token_auth/USAGE
devise_token_auth-1.2.2 lib/generators/devise_token_auth/USAGE
devise_token_auth-1.2.1 lib/generators/devise_token_auth/USAGE
devise_token_auth-1.2.0 lib/generators/devise_token_auth/USAGE
devise_token_auth-1.1.5 lib/generators/devise_token_auth/USAGE
sidecar_token_auth-1.0.1 lib/generators/devise_token_auth/USAGE
devise_token_auth-1.1.4 lib/generators/devise_token_auth/USAGE
devise_token_auth_multitenancy-1.1.3.2 lib/generators/devise_token_auth/USAGE
devise_token_auth_multitenancy-1.1.3.1 lib/generators/devise_token_auth/USAGE
devise_token_auth_multitenancy-1.1.3.alpha1 lib/generators/devise_token_auth/USAGE