lib/restfulness/request.rb in restfulness-0.1.0 vs lib/restfulness/request.rb in restfulness-0.2.0

- old
+ new

@@ -69,10 +69,10 @@ else raise HTTPException.new(406) end end - [:get, :post, :put, :delete, :head, :options].each do |m| + [:get, :post, :put, :patch, :delete, :head, :options].each do |m| define_method("#{m}?") do action == m end end