Class: SoarSmaak::Interpreter

Inherits:
Object
  • Object
show all
Defined in:
lib/soar_smaak/interpreter.rb

Class Method Summary collapse

Class Method Details

.smaak_request?(request) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/soar_smaak/interpreter.rb', line 5

def self.smaak_request?(request)
  auth_header = ::Smaak::RackAdaptor.new(request).header("authorization")
  (not (auth_header.nil?)) and (auth_header.include?("x-smaak"))
end