lib/devise-onesignal/device_lib.rb in devise-onesignal-2.0.0 vs lib/devise-onesignal/device_lib.rb in devise-onesignal-2.0.1
- old
+ new
@@ -1,15 +1,15 @@
module DeviseOnesignal
module DeviceLib
def onesignal_enabled?
- self.permission == 'granted'
+ self.onesignal_permission == 'granted'
end
def onesignal_disabled?
- self.permission == 'denied'
+ self.onesignal_permission == 'denied'
end
def onesignal_set?
- !self.permission == 'default'
+ !self.onesignal_permission == 'default'
end
end
end