Permalink
Browse files

Small fix for destroy, enables delete functionality.

  • Loading branch information...
1 parent dbcd35d commit 1df7ab6711b95b88fb0708245c44b2d5ea257fa9 Marius Seritan committed with Feb 1, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/rails_admin/adapters/abstract_object_mongoid.rb
@@ -5,7 +5,11 @@ class AbstractObjectMongoid < RailsAdmin::AbstractObject
def attributes=(attributes)
object.send :attributes=, attributes
end
+
+ def destroy
+ object.destroy
+ object
+ end
end
end
end
-

0 comments on commit 1df7ab6

Please sign in to comment.