Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions app/controllers/litestream/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
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