Module: Aker::Form::HtmlResponse

Included in:
Middleware::LoginRenderer, Middleware::LoginResponder
Defined in:
lib/aker/form/html_response.rb

Overview

Utility methods for building an HTTP response suitable for the form mode.

Instance Method Summary collapse

Instance Method Details

#html_response(*args) ⇒ Object


8
9
10
11
12
13
# File 'lib/aker/form/html_response.rb', line 8

def html_response(*args)
  ::Rack::Response.new(*args) do |resp|
    resp['Content-Type'] = 'text/html'
    yield resp if block_given?
  end
end