lib/restfulness/resource.rb in restfulness-0.2.6 vs lib/restfulness/resource.rb in restfulness-0.3.0
- old
+ new
@@ -58,10 +58,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, :patch, :delete].include?(request.action)
+ if [:head, :get, :patch, :delete].include?(request.action)
resource_not_found! unless exists?
if [:get, :head].include?(request.action)
# Resource status
check_etag if etag