model_token_auth 1.1.2 → 1.1.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b93ae091013355571f12017b6cc68964e50121e3858ad0d024aacb5b869f4220
|
4
|
+
data.tar.gz: 7ca76fd8071c701f7f0ae2e7f05960b10e186977c2e953ce613ec2d20d11cdb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f79cb9eefaba7c223e4ede9447a51239e00a74afdb920f481af883a8a66fcdff7d56a1f87ef51a7a86335cf8b091dd23c59da19082776a0ed9c093d94fc8211
|
7
|
+
data.tar.gz: 71b52e73b8ff79a9c2313357514e0460429cf7b29a5ec2eb26b363033911bf097d87f4936ae16254fa92337e5513ff5815cb01f8548535cdd374e09480154839
|
@@ -3,12 +3,11 @@ module ModelTokenAuth
|
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
5
|
included do
|
6
|
-
|
7
6
|
# => callbacks
|
8
7
|
before_validation :build_access_token, on: :create
|
9
8
|
|
10
9
|
# => associations
|
11
|
-
has_one :access_token, as: :entity
|
10
|
+
has_one :access_token, as: :entity, dependent: :destroy
|
12
11
|
|
13
12
|
# => validations
|
14
13
|
validates_associated :access_token
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: model_token_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Armando Alejandre
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|