Sha256: da061d74ed53c47b216e82355e49ff9c74881143a0a2c389406aafad32874e0d

Contents?: true

Size: 352 Bytes

Versions: 13

Compression:

Stored size: 352 Bytes

Contents

module DeviseOnesignal
    module DeviceLib

        def onesignal_enabled?
            self.onesignal_permission == 'granted'
        end
        def onesignal_disabled?
            self.onesignal_permission == 'denied'
        end
        def onesignal_set?
            !self.onesignal_permission == 'default'
        end

    end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
devise-onesignal-4.0.1 lib/devise-onesignal/device_lib.rb
devise-onesignal-4.0.0 lib/devise-onesignal/device_lib.rb
devise-onesignal-3.2.0 lib/devise-onesignal/device_lib.rb
devise-onesignal-3.1.5 lib/devise-onesignal/device_lib.rb
devise-onesignal-3.1.4 lib/devise-onesignal/device_lib.rb
devise-onesignal-3.1.3 lib/devise-onesignal/device_lib.rb
devise-onesignal-3.1.2 lib/devise-onesignal/device_lib.rb
devise-onesignal-3.1.1 lib/devise-onesignal/device_lib.rb
devise-onesignal-3.1.0 lib/devise-onesignal/device_lib.rb
devise-onesignal-3.0.2 lib/devise-onesignal/device_lib.rb
devise-onesignal-3.0.1 lib/devise-onesignal/device_lib.rb
devise-onesignal-3.0.0 lib/devise-onesignal/device_lib.rb
devise-onesignal-2.0.1 lib/devise-onesignal/device_lib.rb