Class: Rack::Ajax::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/rack-ajax/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ Parser

Instantiate an ActionController::Request object to make it easier to introspect the headers.



11
12
13
14
# File 'lib/rack-ajax/parser.rb', line 11

def initialize(env)
  @env = env
  @request = Rack::Request.new(env)
end