mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-03-12 05:05:16 +09:00
10 lines
259 B
Ruby
10 lines
259 B
Ruby
module AllowBrowser
|
|
extend ActiveSupport::Concern
|
|
|
|
VERSIONS = { safari: 17.2, chrome: 120, firefox: 121, opera: 104, ie: false }
|
|
|
|
included do
|
|
allow_browser versions: VERSIONS, block: -> { render template: "sessions/incompatible_browser" }
|
|
end
|
|
end
|