user activation on creation/edit
This commit is contained in:
@ -38,6 +38,18 @@ class Person < ActiveRecord::Base
|
||||
activation_state == "active"
|
||||
end
|
||||
|
||||
def active
|
||||
activation_state == 'active'
|
||||
end
|
||||
|
||||
def active=(bool)
|
||||
if bool
|
||||
self.activation_state = 'active'
|
||||
else
|
||||
self.ctivation_state = nil
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
## SorceryCore expects the model to hold a crypted_password field
|
||||
|
Reference in New Issue
Block a user