mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 06:21:23 +00:00
Add 'web' to valid device types
Flutter comes in as `web` when testing / using the Chrome profile Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@ class MobileDevice < ApplicationRecord
|
||||
|
||||
validates :device_id, presence: true, uniqueness: { scope: :user_id }
|
||||
validates :device_name, presence: true
|
||||
validates :device_type, presence: true, inclusion: { in: %w[ios android] }
|
||||
validates :device_type, presence: true, inclusion: { in: %w[ios android web] }
|
||||
|
||||
before_validation :set_last_seen_at, on: :create
|
||||
|
||||
|
||||
Reference in New Issue
Block a user