class ApplicationController

Protected Instance Methods

authenticate() click to toggle source
# File lib/generators/pages/templates/application_controller.rb, line 6
def authenticate
  authenticate_or_request_with_http_basic do |username, password|
    username == "admin" && password == "p4ss"
  end
  # Only needed if Devise is running
  # warden.custom_failure! if performed?
end