Commit 251cd4de6b7eff8889cd718ec284eabfc26a944b
1 parent
e2b96b7a
Exists in
master
and in
1 other branch
Fixed bug in suspension
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
lib/activation.rb
1 | module Activation | 1 | module Activation |
2 | def activate! | 2 | def activate! |
3 | - (self.active = true) && self.save! | 3 | + (self.active = true) |
4 | + self.save! | ||
4 | end | 5 | end |
5 | 6 | ||
6 | def suspend! | 7 | def suspend! |
7 | - (self.active = false) && self.save! | 8 | + (self.active = false) |
9 | + self.save! | ||
8 | end | 10 | end |
9 | end | 11 | end |
10 | \ No newline at end of file | 12 | \ No newline at end of file |