lib/roda/plugins/symbol_status.rb in roda-3.2.0 vs lib/roda/plugins/symbol_status.rb in roda-3.3.0

- old
+ new

@@ -5,13 +5,13 @@ # The symbol_status plugin patches the +status=+ response method to # accept the status name as a symbol. If given an integer value, # the default behaviour is used. # # Examples: - # r.is "needs_authorization" + # r.is "needs_authorization" do # response.status = :unauthorized # end - # r.is "nothing" + # r.is "nothing" do # response.status = :no_content # end # # The conversion is done through <tt>Rack::Utils.status_code</tt>. module SymbolStatus