Sha256: a234534b8a75d0d21189b5d6e1428d606385d32361acf27a49f57b5f32193f5a

Contents?: true

Size: 1.25 KB

Versions: 56

Compression:

Stored size: 1.25 KB

Contents

Description:
  This generator will install all the necessary configuration and migration
  files for the devies_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://github.com/lynndylanhurley/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.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

56 entries across 56 versions & 3 rubygems

Version Path
devise_token_auth-0.1.30.beta4 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.30.beta3 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.30.beta2 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.30.beta1 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.29 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.29.beta7 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.29.beta6 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.29.beta5 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.29.beta4 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.29.beta3 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.29.beta2 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.29.beta1 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.28 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.28.beta9 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.28.beta8 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.28.beta7 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.28.beta6 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.28.beta5 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.28.beta4 lib/generators/devise_token_auth/USAGE
devise_token_auth-0.1.28.beta3 lib/generators/devise_token_auth/USAGE