From 2698c4d6d80f9b92905d2d16006c6c964bd855a5 Mon Sep 17 00:00:00 2001 From: Toks Date: Wed, 29 Oct 2014 12:29:10 -0400 Subject: [PATCH] Fix server field not getting set for uploads --- app/models/upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/upload.rb b/app/models/upload.rb index 238ee71c1..ce12f68d7 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -14,7 +14,7 @@ class Upload < ActiveRecord::Base validate :uploader_is_not_limited, :on => :create validate :file_or_source_is_present, :on => :create validate :rating_given - attr_accessible :file, :image_width, :image_height, :file_ext, :md5, :file_size, :as_pending, :source, :file_path, :content_type, :rating, :tag_string, :status, :backtrace, :post_id, :md5_confirmation, :parent_id + attr_accessible :file, :image_width, :image_height, :file_ext, :md5, :file_size, :as_pending, :source, :file_path, :content_type, :rating, :tag_string, :status, :backtrace, :post_id, :md5_confirmation, :parent_id, :server module ValidationMethods def uploader_is_not_limited