module Trestle::Auth::Controller::Locale

Protected Instance Methods

set_locale() { || ... } click to toggle source
# File lib/trestle/auth/controller/locale.rb, line 12
def set_locale
  I18n.with_locale(instance_exec(current_user, &Trestle.config.auth.locale) || I18n.default_locale) { yield }
end