Permalink
Browse files

Fixed typo

  • Loading branch information...
1 parent 3d4d0d1 commit a847818d621eb1f858bcf6ae8b85a668f590e2b6 Leon Dewey committed Jul 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/api_canon/documented_action.rb
View
4 lib/api_canon/documented_action.rb
@@ -13,10 +13,10 @@ def initialize(action_name, controller_name)
:description => "The requested format of the response."
# This is based of the rails defaults.
- @http_method = case action_name
+ @http_method = case action_name.to_s
when "create" then "POST"
when "update" then "PUT"
- when "destory" then "DELETE"
+ when "destroy" then "DELETE"
else "GET"
end

0 comments on commit a847818

Please sign in to comment.