Module: Roda::RodaPlugins::SymbolStatus::ResponseMethods

Defined in:
lib/roda/plugins/symbol_status.rb

Instance Method Summary collapse

Instance Method Details

#status=(code) ⇒ Object

Sets the response status code by fixnum or symbol name



23
24
25
26
# File 'lib/roda/plugins/symbol_status.rb', line 23

def status=(code)
  code = Rack::Utils.status_code(code) if code.is_a?(Symbol)
  super(code)
end