Class: PostDB::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PostDB::User
- Defined in:
- lib/postdb/user.rb
Instance Method Summary collapse
Instance Method Details
#delete_account_data ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/postdb/user.rb', line 26 def delete_account_data 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 |