Class: RestaurantPartners::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- RestaurantPartners::ApplicationController
show all
- Includes:
- ElasticApmContext, LogrageCustomLogger
- Defined in:
- app/controllers/restaurant_partners/application_controller.rb
Overview
typed: ignore frozen_string_literal: true
Instance Method Summary
collapse
#append_info_to_payload
Instance Method Details
#identity_cache_memoization(&block) ⇒ Object
17
18
19
|
# File 'app/controllers/restaurant_partners/application_controller.rb', line 17
def identity_cache_memoization(&block)
IdentityCache.cache.with_memoization(&block)
end
|
#switch_locale(&action) ⇒ Object
21
22
23
24
25
|
# File 'app/controllers/restaurant_partners/application_controller.rb', line 21
def switch_locale(&action)
I18n.with_locale(:en) do
Globalize.with_locale(:en, &action)
end
end
|