X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/72984673067a37a1ea687709a33b18263f850633..9e6e6c2e231514e7b2eb96dacb0e5cc88fdd2abb:/app/helpers/application_helper.rb?ds=sidebyside diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2ccfcca2b..c24e7ff5b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -119,6 +119,16 @@ module ApplicationHelper end end + def preferred_editor + if params[:editor] + params[:editor] + elsif @user and @user.preferred_editor + @user.preferred_editor + else + DEFAULT_EDITOR + end + end + private def javascript_strings_for_key(key)