Module: Pancake::Mixins::ResponseHelper
- Defined in:
- lib/pancake/mixins/response_helper.rb
Instance Method Summary collapse
Instance Method Details
#headers ⇒ Object
4 5 6 |
# File 'lib/pancake/mixins/response_helper.rb', line 4 def headers @headers ||= {} end |
#redirect(location, status = 302) ⇒ Object
16 17 18 19 20 |
# File 'lib/pancake/mixins/response_helper.rb', line 16 def redirect(location, status = 302) r = Rack::Response.new r.redirect(location, status) r end |
#status ⇒ Object
8 9 10 |
# File 'lib/pancake/mixins/response_helper.rb', line 8 def status @status ||= 200 end |
#status=(st) ⇒ Object
12 13 14 |
# File 'lib/pancake/mixins/response_helper.rb', line 12 def status=(st) @status = st end |