scinote-web/app/models/temp_file.rb
2016-02-12 16:52:43 +01:00

6 lines
152 B
Ruby

class TempFile < ActiveRecord::Base
validates :session_id, presence: true
has_attached_file :file
do_not_validate_attachment_file_type :file
end