Fix server field not getting set for uploads

This commit is contained in:
Toks
2014-10-29 12:29:10 -04:00
parent cbff5b91f4
commit 2698c4d6d8

View File

@@ -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