chore(browser): mark samsung browser as supported browser
This commit is contained in:
parent
566f5968ae
commit
12598229a7
2 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
13
app/tasks/maintenance/samsung_browser_is_supported_task.rb
Normal file
13
app/tasks/maintenance/samsung_browser_is_supported_task.rb
Normal 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
|
Loading…
Reference in a new issue