Sha256: 2038f0a670f8f243ebd0b93417a73e4f7f85dc527381494279a810fed639eac3
Contents?: true
Size: 632 Bytes
Versions: 4
Compression:
Stored size: 632 Bytes
Contents
module Rails # These are not intended to be used directly class Authentication attr_accessor :body def redirected? !!headers["Location"] end def headers @headers ||= {} end def status @status ||= 200 end def status=(sts) @status = sts end def halted? !!@halt end def headers=(headers) raise ArgumentError, "Need to supply a hash to headers. Got #{headers.class}" unless headers.kind_of?(Hash) @headers = headers end def halt! @halt = true end end # Rails::Authentication end # Rails
Version data entries
4 entries across 4 versions & 1 rubygems