aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activeresource/lib')
-rw-r--r--activeresource/lib/active_resource/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb
index 656698fb25..40fd965487 100644
--- a/activeresource/lib/active_resource/base.rb
+++ b/activeresource/lib/active_resource/base.rb
@@ -81,6 +81,10 @@ module ActiveResource
end
end
+ def delete(id)
+ connection.delete(element_path(id))
+ end
+
private
# { :people => { :person => [ person1, person2 ] } }
def find_every(options)