Sha256: 041d28b8bd67e9c0a9920e5236478044ed3ee13f1a9b4517f28b29e136e26b6b
Contents?: true
Size: 477 Bytes
Versions: 4
Compression:
Stored size: 477 Bytes
Contents
module ActionController class AbstractResponse #:nodoc: DEFAULT_HEADERS = { "Cache-Control" => "no-cache" } attr_accessor :body, :headers, :session, :cookies, :assigns, :template, :redirected_to, :redirected_to_method_params def initialize @body, @headers, @session, @assigns = "", DEFAULT_HEADERS.merge("cookie" => []), [], [] end def redirect(to_url) @headers["Status"] = "302 Moved" @headers["location"] = to_url end end end
Version data entries
4 entries across 4 versions & 1 rubygems