Permalink
Browse files

Do not call save from within the _save method.

  • Loading branch information...
1 parent 1ff7d4c commit 1a718493e252ceb89de7b3e8ac7fe0e806108db9 @postmodern committed Jul 17, 2010
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/dm-is-counter_cacheable/is/counter_cacheable.rb
@@ -70,7 +70,6 @@ def _save(*arguments)
count = parent_resource.attribute_get(property)
parent_resource.attribute_set(property,count + 1)
- parent_resource.save
end
end
@@ -90,7 +89,6 @@ def _destroy(*arguments)
count = parent_resource.attribute_get(property)
parent_resource.attribute_set(property,count - 1)
- parent_resource.save
end
end

0 comments on commit 1a71849

Please sign in to comment.