Skip to content

Commit

Permalink
Added an alias for :delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago Parreira committed Dec 23, 2015
1 parent 44ecf16 commit 9ae25c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/passworks/asset_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class AssetResource < Resource
def delete
client.delete("#{collection_name}/#{id}").ok?
end
alias_method :destroy, :delete

end
end

0 comments on commit 9ae25c3

Please sign in to comment.