Sha256: 5e2d030111d03271da700eb4a0a24bebd4d3cb536ba40010448103edf0c58446
Contents?: true
Size: 363 Bytes
Versions: 6
Compression:
Stored size: 363 Bytes
Contents
class PeakFlowUtils::ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :authenticate private def authenticate authenticate_or_request_with_http_basic do |username, password| username == ENV.fetch("PEAK_FLOW_PINGS_USERNAME") && password == ENV.fetch("PEAK_FLOW_PINGS_PASSWORD") end end end
Version data entries
6 entries across 6 versions & 1 rubygems