Commit b730d749c6a44e54abbeff72cebb516bd48a276a
1 parent
97b1aefd
Exists in
master
and in
1 other branch
more intuitive naming of the deactivate method
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
lib/activation.rb
| @@ -8,4 +8,9 @@ module Activation | @@ -8,4 +8,9 @@ module Activation | ||
| 8 | (self.active = false) | 8 | (self.active = false) |
| 9 | self.save! | 9 | self.save! |
| 10 | end | 10 | end |
| 11 | + | ||
| 12 | + def deactivate! | ||
| 13 | + (self.active = false) | ||
| 14 | + self.save! | ||
| 15 | + end | ||
| 11 | end | 16 | end |
| 12 | \ No newline at end of file | 17 | \ No newline at end of file |