|
|
@ -5,7 +5,9 @@ class ApplicationController < ActionController::Base |
|
|
private |
|
|
private |
|
|
|
|
|
|
|
|
def authenticate |
|
|
def authenticate |
|
|
http_basic_authenticate_with name: "stupid", password: "studio" if Rails.env.production? |
|
|
|
|
|
|
|
|
authenticate_or_request_with_http_basic do |name, password| |
|
|
|
|
|
name == "stupid" && password == "studio" |
|
|
|
|
|
end if Rails.env.production? |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -17,6 +19,4 @@ private |
|
|
def not_found |
|
|
def not_found |
|
|
raise ActionController::RoutingError.new("Not Found") |
|
|
raise ActionController::RoutingError.new("Not Found") |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end |
|
|
end |