Sha256: 2512adaff9972df11d2f3c3f3eaab44861eee90a2bd4ab442968f24d349ab983
Contents?: true
Size: 417 Bytes
Versions: 9
Compression:
Stored size: 417 Bytes
Contents
# frozen_string_literal: true module Sail class ApplicationController < ActionController::Base # :nodoc: protect_from_forgery with: :exception protected def current_user main_app.scope.request.env["warden"]&.user end def default_url_options { locale: I18n.locale } end def set_locale I18n.locale = params[:locale].presence || I18n.default_locale end end end
Version data entries
9 entries across 9 versions & 1 rubygems