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.


8
9
10
# File 'app/controllers/diaspora_federation/application_controller.rb', line 8

def set_locale
  I18n.locale = :en
end