mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 12:51:42 +00:00
feat: instalada gema device_detector #14334
This commit is contained in:
parent
ae72297adf
commit
4689d10e8d
2 changed files with 4 additions and 0 deletions
1
Gemfile
1
Gemfile
|
@ -78,6 +78,7 @@ gem 'validates_hostname'
|
|||
gem 'webpacker'
|
||||
gem 'yaml_db', git: 'https://0xacab.org/sutty/yaml_db.git'
|
||||
gem 'kaminari'
|
||||
gem 'device_detector'
|
||||
|
||||
# database
|
||||
gem 'hairtrigger'
|
||||
|
|
3
config/initializers/device_detector.rb
Normal file
3
config/initializers/device_detector.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
DeviceDetector.configure do |config|
|
||||
config.max_cache_keys = 5_000 # to check if not too much
|
||||
end
|
Loading…
Reference in a new issue