Sha256: 0d9cd45572a1840fd4f6b898a9583ad54217c2c410fcaa873af9ff0634aa939d
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
module Workarea module BasicAuth class CredentialsMissing < ArgumentError; end class Railtie < Rails::Railtie config.to_prepare do basic_auth = Workarea.config.basic_auth if Workarea::BasicAuth.enabled? if basic_auth.user.nil? || basic_auth.pass.nil? raise CredentialsMissing, "Basic Auth is enabled but you did not set Workarea.config.basic_auth.user or Workarea.config.basic_auth.password" end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-basic_auth-1.1.2 | lib/workarea/basic_auth/railtie.rb |
workarea-basic_auth-1.1.1 | lib/workarea/basic_auth/railtie.rb |