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: 5db811590f96edd70be9dd6a69de23417df28b1f0bd462329730425224538866
4
- data.tar.gz: 89dd8598f5366e651ff3a05faa776021e6fcb9500ee6f6a21ce7e6635a11f4cd
3
+ metadata.gz: b93ae091013355571f12017b6cc68964e50121e3858ad0d024aacb5b869f4220
4
+ data.tar.gz: 7ca76fd8071c701f7f0ae2e7f05960b10e186977c2e953ce613ec2d20d11cdb7
5
5
  SHA512:
6
- metadata.gz: dfa3c52bd3765557b37aa4e4317792e6e9c6c6cce5f5b6520f38f272379dc8ff3cd3dde2c3b5e369d0c54e9e186a0eaf264a21f1ba6eac75348f0a5605c18757
7
- data.tar.gz: ce058c13cf9204bcf68d5f2d9136265464db6c56c1c3a0fcae4daba832ed1f549b1b5c337fbbcb4ff210d3bb079bb6493dc6efa23df89d789f147fc7dcb2ab7b
6
+ metadata.gz: 0f79cb9eefaba7c223e4ede9447a51239e00a74afdb920f481af883a8a66fcdff7d56a1f87ef51a7a86335cf8b091dd23c59da19082776a0ed9c093d94fc8211
7
+ data.tar.gz: 71b52e73b8ff79a9c2313357514e0460429cf7b29a5ec2eb26b363033911bf097d87f4936ae16254fa92337e5513ff5815cb01f8548535cdd374e09480154839
@@ -3,7 +3,6 @@ module ModelTokenAuth
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
-
7
6
  # => callbacks
8
7
  after_initialize :assign_token, if: :new_record?
9
8
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ModelTokenAuth
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
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.2
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-05-30 00:00:00.000000000 Z
11
+ date: 2019-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails