lib/devise-onesignal/device_concern.rb in devise-onesignal-2.0.0 vs lib/devise-onesignal/device_concern.rb in devise-onesignal-2.0.1
- old
+ new
@@ -14,10 +14,10 @@
def set_device
unless cookies[:oneSignalUserId].nil?
onesignal_user_id = cookies[:oneSignalUserId]
device = Device.find_or_create_by! onesignal_id: onesignal_user_id
device.user = current_user if current_user
- device.permission = cookies[:oneSignalUserPermission]
+ device.onesignal_permission = cookies[:oneSignalUserPermission]
device.last_used = Time.now
device.save!
end
end