Class: V2Users::PagesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationV2Controller
- BaseController
- V2Users::PagesController
- Defined in:
- app/controllers/v2_users/pages_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
#activate_cache?, #current_user_ck, default_url_options, #identity_cache_memoization, #set_csrf_token
Methods included from LogrageCustomLogger
Methods included from UpdateLocaleConcern
Methods included from ResponseCacheConcern
Methods included from AdminHelper
#dynamic_pricings_formatter, #link_to_admin_reservations_path_by_id, #link_to_admin_restaurants_path_by_id, #link_to_log, #optional_locales, #optional_locales_with_labels, #staff_signed_in?
Methods inherited from ApplicationV2Controller
Instance Method Details
#root ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/controllers/v2_users/pages_controller.rb', line 5 def root if Rails.env.production? query = params.permit!.except(:action, :controller) redirect_to("#{AdminSetting.web_v2_host}/#{I18n.locale}/?#{query.to_param}", status: :moved_permanently) else render plain: 'App is running', status: :ok end end |