Class: MessageAttachment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- MessageAttachment
- Defined in:
- app/models/message_attachment.rb
Instance Method Summary collapse
Instance Method Details
#file_readability ⇒ Object
8 9 10 11 12 13 |
# File 'app/models/message_attachment.rb', line 8 def file_readability if file.blank? or !File.exist?(file) or !File.read(file) errors.add(:file, "does not exist?!") end true end |