maia 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/controllers/concerns/maia/controller.rb +3 -2
- data/lib/maia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDViYjEwNDU1ZjA4MGM3NGEwZGIyODc3YjJjYjQ3MmI3MTQwOTI2OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmM0ODUwMDlhZDFjN2FhMGMxNzRhNDY2ZmFjNDIwYTNlZjdlNDcyMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTk2OWU1Y2U5N2JkYzgzODRhODEwYTMwMjQ5NGFkZGI5YjUyZDNmZGQyZDBk
|
10
|
+
NmEzMjA4ZjE0OTcxZDNiM2ZhMDBiZjA4N2I2MTNkYjBlZDJmMWI0YmJhZjE2
|
11
|
+
YTNhMzgwZjgwODhmMDkzOGNmNWY5MDllOWRlOTg4YWIwNWM0NjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmRiOWY1NWJlOGE1NTYwYzlmNGQ3NDc5NGJmZmZhOTY1YzhjN2UyYTdkMWZh
|
14
|
+
M2I4MWE4NzM5YTU3NjI1NDBkOGM5YTIzNjFiMDlhMGY1MDY0NmEyZTBkOWQ5
|
15
|
+
YTkwMDZhNmU2NTU2NTU4YmQzZjNiNWM3NDVmYjhmYzFkOTEwODE=
|
@@ -5,7 +5,7 @@ module Maia
|
|
5
5
|
def create
|
6
6
|
if device_exists?
|
7
7
|
@device = find_device
|
8
|
-
|
8
|
+
update_device @device
|
9
9
|
else
|
10
10
|
@device = create_device_token
|
11
11
|
send_dry_run_to current_user
|
@@ -28,7 +28,8 @@ module Maia
|
|
28
28
|
current_user.devices.find_by token: token
|
29
29
|
end
|
30
30
|
|
31
|
-
def
|
31
|
+
def update_device(device)
|
32
|
+
device.attributes = permitted_params
|
32
33
|
device.reset_token_expiry
|
33
34
|
device.save
|
34
35
|
end
|
data/lib/maia/version.rb
CHANGED