scinote-web/app/models/temp_file.rb

7 lines
152 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
class TempFile < ActiveRecord::Base
validates :session_id, presence: true
has_attached_file :file
do_not_validate_attachment_file_type :file
end