Sha256: 6e998cdda06b1ad53ccce81e9e5444f83260eb5c6857bf9e4d849fcf783668bd
Contents?: true
Size: 855 Bytes
Versions: 21
Compression:
Stored size: 855 Bytes
Contents
module Rack module OAuth2 module Server module Rails module ResponseExt def redirect? ensure_finish do @response.redirect? end end def location ensure_finish do super end end def json ensure_finish do @response.body end end def header ensure_finish do @header end end def finish @finished = true super end private def finished? !!@finished end def ensure_finish @status, @header, @response = finish unless finished? yield end end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems