Class: DiasporaFederation::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- DiasporaFederation::ApplicationController
- Defined in:
- app/controllers/diaspora_federation/application_controller.rb
Overview
Base controller for all DiasporaFederation controllers
Direct Known Subclasses
FetchController, HCardController, ReceiveController, WebfingerController
Instance Method Summary collapse
-
#set_locale ⇒ Object
Fix locale leakage from other requests.
Instance Method Details
#set_locale ⇒ Object
Fix locale leakage from other requests. Set “en” as locale for every federation request.
10 11 12 |
# File 'app/controllers/diaspora_federation/application_controller.rb', line 10 def set_locale I18n.locale = :en end |