geolocation
This commit is contained in:
parent
0b52c0dd9a
commit
9945371a05
1
Gemfile
1
Gemfile
|
|
@ -68,3 +68,4 @@ end
|
|||
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
|
||||
|
||||
gem 'kaminari', '1.1.1'
|
||||
gem 'geocoder'
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ class ShopController < ApplicationController
|
|||
include PageContent
|
||||
|
||||
def set_settings
|
||||
Rails.logger.error request.location.country_code
|
||||
@ss = ScSetting.first
|
||||
redirect_to '/closed.html' if @ss.shop_active.eql?(false)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue