From 99a47393abcd7827fec5b9da7f425399be0d24b4 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Wed, 23 Nov 2011 23:22:14 +0100 Subject: [PATCH] Validate presence of stdout/stdout_timing --- app/models/asciicast.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/asciicast.rb b/app/models/asciicast.rb index ba4c8c8..f0d5b3c 100644 --- a/app/models/asciicast.rb +++ b/app/models/asciicast.rb @@ -1,8 +1,9 @@ class Asciicast < ActiveRecord::Base - validates :terminal_columns, :terminal_lines, :duration, :presence => true - mount_uploader :stdin, BasicUploader mount_uploader :stdin_timing, BasicUploader mount_uploader :stdout, BasicUploader mount_uploader :stdout_timing, BasicUploader + + validates :stdout, :stdout_timing, :presence => true + validates :terminal_columns, :terminal_lines, :duration, :presence => true end