Sha256: 8df016c73dfd74266f8a7cdbf8ab7b750551702d5a7436c253a3397d423ed316
Contents?: true
Size: 417 Bytes
Versions: 15
Compression:
Stored size: 417 Bytes
Contents
module Litestream class ApplicationController < ActionController::Base protect_from_forgery with: :exception around_action :force_english_locale! if Litestream.password http_basic_authenticate_with( name: Litestream.username, password: Litestream.password ) end private def force_english_locale!(&action) I18n.with_locale(:en, &action) end end end
Version data entries
15 entries across 15 versions & 1 rubygems