devise_token_auth 0.1.32.beta3 → 0.1.32.beta4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92ec2a5f22f107c04e502559c0287ce91691418a
|
4
|
+
data.tar.gz: e320684988bc76c5c73f769875530a444f310027
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b58c07c4dd36290f98b381d0788957227b58716ccc0153c04c455070bcccdbe1e3aaaaaed056b85e2336269c6d31c757e9d5359aee342ba3a2e37622870724a4
|
7
|
+
data.tar.gz: 0b2a8abb586ced299827e22ab91f32515d6a96b001b1631521c85b5f1a9ae3aebd6a60a544f47f03d2ef3a78d1ed2a8b5a074c8fe6a3768042f647e238a81b9a
|
data/README.md
CHANGED
@@ -83,7 +83,7 @@ rails g devise_token_auth:install [USER_CLASS] [MOUNT_PATH]
|
|
83
83
|
**Example**:
|
84
84
|
|
85
85
|
~~~bash
|
86
|
-
rails g devise_token_auth:install User
|
86
|
+
rails g devise_token_auth:install User auth
|
87
87
|
~~~
|
88
88
|
|
89
89
|
This generator accepts the following optional arguments:
|
@@ -91,7 +91,7 @@ This generator accepts the following optional arguments:
|
|
91
91
|
| Argument | Default | Description |
|
92
92
|
|---|---|---|
|
93
93
|
| USER_CLASS | `User` | The name of the class to use for user authentication. |
|
94
|
-
| MOUNT_PATH |
|
94
|
+
| MOUNT_PATH | `auth` | The path at which to mount the authentication routes. [Read more](#usage). |
|
95
95
|
|
96
96
|
The following events will take place when using the install generator:
|
97
97
|
|
@@ -120,7 +120,7 @@ You may also need to configure the following items:
|
|
120
120
|
|
121
121
|
# Usage TL;DR
|
122
122
|
|
123
|
-
The following routes are available for use by your client. These routes live relative to the path at which this engine is mounted (
|
123
|
+
The following routes are available for use by your client. These routes live relative to the path at which this engine is mounted (`auth` by default). These routes correspond to the defaults used by the [ng-token-auth](https://github.com/lynndylanhurley/ng-token-auth) module for angular.js.
|
124
124
|
|
125
125
|
| path | method | purpose |
|
126
126
|
|:-----|:-------|:--------|
|
@@ -5,7 +5,7 @@ module DeviseTokenAuth
|
|
5
5
|
source_root File.expand_path('../templates', __FILE__)
|
6
6
|
|
7
7
|
argument :user_class, type: :string, default: "User"
|
8
|
-
argument :mount_path, type: :string, default: '
|
8
|
+
argument :mount_path, type: :string, default: 'auth'
|
9
9
|
|
10
10
|
def create_initializer_file
|
11
11
|
copy_file("devise_token_auth.rb", "config/initializers/devise_token_auth.rb")
|