Class: PostDB::User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/postdb/user.rb

Instance Method Summary collapse

Instance Method Details

#delete_account_dataObject



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/postdb/user.rb', line 26

def 
  mail_location = PostDB::Mail.mail_location

  path = mail_location.get_path(self.email, self.domain.name)

  return false unless File.exist?(path)

  begin
    FileUtils.rm_rf(path)
  rescue => e
    return false
  end

  true
end