lib/restfulness/resource.rb in restfulness-0.2.0 vs lib/restfulness/resource.rb in restfulness-0.2.1
- old
+ new
@@ -55,11 +55,10 @@
method_not_allowed! unless method_allowed?
unauthorized! unless authorized?
forbidden! unless allowed?
# The following callbacks only make sense for certain methods
- if [:head, :get, :put, :delete].include?(request.action)
-
+ if [:head, :get, :put, :patch, :delete].include?(request.action)
resource_not_found! unless exists?
if [:get, :head].include?(request.action)
# Resource status
check_etag if etag