From bdfb0e64bc66dc69214c9f6ffe63d335d80dd1f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Mata?= Date: Thu, 29 Jan 2026 13:12:05 +0100 Subject: [PATCH] Add 'web' to valid device types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flutter comes in as `web` when testing / using the Chrome profile Signed-off-by: Juan José Mata --- app/models/mobile_device.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/mobile_device.rb b/app/models/mobile_device.rb index da94291c1..07dffcbe4 100644 --- a/app/models/mobile_device.rb +++ b/app/models/mobile_device.rb @@ -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