Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/openstax/utilities/access.rb

Instance Method Summary collapse

Instance Method Details

#protect_betaObject



18
19
20
21
22
23
# File 'lib/openstax/utilities/access.rb', line 18

def protect_beta
  options = @@protect_beta_options
  authenticate_or_request_with_http_basic(options[:message]) do |username, password|
    username == options[:username] && password == options[:password]
  end
end