chore(browser): mark samsung browser as supported browser

This commit is contained in:
Paul Chavard 2024-02-20 16:32:39 +01:00
parent 566f5968ae
commit 12598229a7
2 changed files with 15 additions and 1 deletions

View file

@ -6,7 +6,8 @@ class BrowserSupport
browser.firefox? && browser.version.to_i >= 67 && !browser.platform.ios?,
browser.opera? && browser.version.to_i >= 50,
browser.safari? && browser.version.to_i >= 12,
browser.platform.ios? && browser.platform.version.to_i >= 12
browser.platform.ios? && browser.platform.version.to_i >= 12,
browser.samsung_browser? && browser.version.to_i >= 12
].any?
end
end

View file

@ -0,0 +1,13 @@
# frozen_string_literal: true
module Maintenance
class SamsungBrowserIsSupportedTask < MaintenanceTasks::Task
def collection
Traitement.where(browser_name: 'Samsung Browser', browser_version: 12..)
end
def process(traitement)
traitement.update_column(:browser_supported, true)
end
end
end