mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-16 22:25:28 +01:00
clean up debug code and get new user correct
This commit is contained in:
parent
5b431ef50a
commit
901af95c69
5 changed files with 15 additions and 11 deletions
|
|
@ -42,6 +42,8 @@ class ApplicationController < ActionController::Base
|
|||
extend ActionView::Helpers::SanitizeHelper::ClassMethods
|
||||
helper_method :format_date, :markdown
|
||||
|
||||
I18n.locale = Tracks::Config.locale
|
||||
|
||||
# By default, sets the charset to UTF-8 if it isn't already set
|
||||
def set_charset
|
||||
headers["Content-Type"] ||= "text/html; charset=UTF-8"
|
||||
|
|
@ -276,8 +278,7 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def set_time_zone
|
||||
Time.zone = current_user.prefs.time_zone if logged_in?
|
||||
locale = params[:locale] || 'en-US'
|
||||
I18n.locale = locale
|
||||
I18n.locale = Tracks::Config.locale
|
||||
end
|
||||
|
||||
def set_zindex_counter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue