devise-onesignal 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/devise-onesignal/device_concern.rb +1 -1
- data/lib/devise-onesignal/device_helper.rb +1 -1
- data/lib/devise-onesignal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 607eba4ccc567540c1f681725faade5f4b548ccbaf630c014050ffe0921f8506
|
4
|
+
data.tar.gz: c43c2b09c2b8123ce1536b27db19e44779bafd85d00eb2c3370284ce031b796a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95dbb20630a289f9b0febcae39e448f88e61e4fcf7ca1c561a831772f0e2b21799c76b67c6fe97005f451401988374f9134c7ebd23e7bf98d9145a0444088fdc
|
7
|
+
data.tar.gz: a0443b7c911abcd44f806d1126ce5c4cc871a4cffbc0b9857328c34cf1966b56913dfe4476a6bdd8c0a76e3bc1b7ab36531b955427c0085571339aa4838ce075
|
data/CHANGELOG.md
CHANGED
@@ -17,7 +17,7 @@ module DeviseOnesignal
|
|
17
17
|
device = Device.find_or_create_by! onesignal_id: onesignal_player_id
|
18
18
|
device.onesignal_permission = cookies[:oneSignalPlayerPermission]
|
19
19
|
device.last_used = Time.now
|
20
|
-
device.owner = ApplicationController.set_device_owner || set_device_owner
|
20
|
+
device.owner = ApplicationController.try(:set_device_owner) || set_device_owner
|
21
21
|
device.save!
|
22
22
|
end
|
23
23
|
end
|
@@ -5,7 +5,7 @@ module DeviseOnesignal
|
|
5
5
|
if cookies[:oneSignalPlayerId].nil?
|
6
6
|
device = Device.new
|
7
7
|
device.onesignal_permission = cookies[:oneSignalPlayerPermission]
|
8
|
-
device.owner = ApplicationController.set_device_owner || set_device_owner
|
8
|
+
device.owner = ApplicationController.try(:set_device_owner) || set_device_owner
|
9
9
|
device.last_used = Time.now
|
10
10
|
else
|
11
11
|
device = Device.find_by onesignal_id: cookies[:oneSignalPlayerId]
|