Skip to content
Browse files

Fixed typo

  • Loading branch information...
1 parent 96b7232 commit a644de3222cc6f98e1b07bb75d24bc21654dad3f 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 a644de3

Please sign in to comment.
Something went wrong with that request. Please try again.