devise_multiple_token_auth 0.0.23 → 0.0.24

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: 5b00f815325a2452000637f782bcca9703626fae
4
- data.tar.gz: 420c1c6e8e8f284947f7d2ce76c704557f52402f
3
+ metadata.gz: 4f7a70f4cb3f7e15c53291d706a82f003fb75fde
4
+ data.tar.gz: 92fea1277fe5630fa92853effed8542c2cbdf815
5
5
  SHA512:
6
- metadata.gz: 54cbb3c6e9ddbdd97e8246d8fd55e049226676ac7966bf9e843febbc6094a6fdbcc12e6c4ea4a26636020130556ba33aab4660f8298e653d598c2b0ed4b72dcb
7
- data.tar.gz: 5656f0f6360459bd24c58326119b6049b41c2f39325f76ebf2708fc364a57173ecd1581781bf9c5b4a9de34be689dadecd5d1db9369f98916899614648135a13
6
+ metadata.gz: 95e844294552ae8da08b150ca83b6711a714cc5394f3e5990c0c51768371afeee3b6b179db3df60aee7bcab4fd47e7c83ac28dddd141919baeddf0ede621284c
7
+ data.tar.gz: a0ccddfafd7a908d4b641951e79a57d333771f0111a08bd949cd25389fd007bcae9afa0ce35877a067595a45c6c7f2bd4bf60e7a9cf5672a80caa9b0bb59cb49
@@ -8,8 +8,8 @@ module DeviseMultipleTokenAuth
8
8
 
9
9
  module ClassMethods
10
10
  def devise_token_authenticatable
11
- class_eval do
12
- has_many :devices, class_name: "DeviseMultipleTokenAuth::Device"
11
+ class_eval do
12
+ has_many :devices, class_name: "DeviseMultipleTokenAuth::Device", dependent: :destroy
13
13
  def create_device
14
14
  DeviseMultipleTokenAuth::Device.destroy_expired
15
15
  new_device = Device.new
@@ -23,11 +23,11 @@ module DeviseMultipleTokenAuth
23
23
  end
24
24
  end
25
25
 
26
-
26
+
27
27
  end
28
28
  end
29
29
  end
30
30
 
31
31
  class ActiveRecord::Base
32
32
  include DeviseMultipleTokenAuth::ActiveRecord::Base
33
- end
33
+ end
@@ -1,3 +1,3 @@
1
1
  module DeviseMultipleTokenAuth
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_multiple_token_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Juncker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-05 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails