Sha256: 48c0489e5762b56cfd86b8d332712b71d91c0c3b05ed2888184223bda4687a83
Contents?: true
Size: 478 Bytes
Versions: 3
Compression:
Stored size: 478 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception if Authentication.authentication_required? http_basic_authenticate_with name: Authentication.credentials[:user], password: Authentication.credentials[:password] end def backend @backend ||= BackendConnection.build(current_database: session[:database]) end end
Version data entries
3 entries across 3 versions & 1 rubygems