app/models/user.rb
# make sure inactive date is killed if the user has been set active
make sure inactive date is killed if the user has been set active
make sure inactive date is killed if the user has been set active
def null_inactive_date_if_set_active
    if self.status == STATUS_ACTIVE
      self.date_inactive = nil
    end
  end
def null_inactive_date_if_set_active if self . status == STATUS_ACTIVE self . date_inactive = nil end end
make sure inactive date is killed if the user has been set active
make sure inactive date is killed if the user has been set active