Class: DiasporaFederation::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/diaspora_federation/application_controller.rb

Overview

Base controller for all DiasporaFederation controllers

Instance Method Summary collapse

Instance Method Details

#set_localeObject

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