Sha256: 606eb63e98e964206b809b3885abef25af5cd5c1b0638c416e212268267ce260

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

module Plug
  class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception

    if Plug.auth_user.present? && Plug.auth_password.present?
      http_basic_authenticate_with name: Plug.auth_user, password: Plug.auth_password
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
plug-0.1.19 app/controllers/plug/application_controller.rb
plug-0.1.18 app/controllers/plug/application_controller.rb
plug-0.1.16 app/controllers/plug/application_controller.rb
plug-0.1.15 app/controllers/plug/application_controller.rb
plug-0.1.14 app/controllers/plug/application_controller.rb
plug-0.1.12 app/controllers/plug/application_controller.rb