From b730d749c6a44e54abbeff72cebb516bd48a276a Mon Sep 17 00:00:00 2001 From: Pius Uzamere Date: Thu, 28 Jan 2010 01:59:07 -0500 Subject: [PATCH] more intuitive naming of the deactivate method --- lib/activation.rb | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/lib/activation.rb b/lib/activation.rb index 9d97470..40e599c 100644 --- a/lib/activation.rb +++ b/lib/activation.rb @@ -8,4 +8,9 @@ module Activation (self.active = false) self.save! end + + def deactivate! + (self.active = false) + self.save! + end end \ No newline at end of file -- libgit2 0.21.2