Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensuring ActsAsArchive never gets permanently disabled

  • Loading branch information...
commit 7fb0e600dab5c16364ad6bb9d730007efa156b84 1 parent 381596a
@winton authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/acts_as_archive.rb
View
3  lib/acts_as_archive.rb
@@ -16,8 +16,9 @@ def disable(&block)
mutex.synchronize do
self.disabled = true
block.call
- self.disabled = false
end
+ ensure
+ self.disabled = false
end
def deprecate(msg)
Please sign in to comment.
Something went wrong with that request. Please try again.