don't change attribution of uploads on update

This commit is contained in:
Albert Yi
2018-06-19 11:14:35 -07:00
parent 578e5a6fea
commit 558be081b2

View File

@@ -52,7 +52,7 @@ class Upload < ApplicationRecord
belongs_to :uploader, :class_name => "User"
belongs_to :post, optional: true
before_validation :initialize_attributes
before_validation :initialize_attributes, on: :create
before_validation :assign_rating_from_tags
validate :uploader_is_not_limited, on: :create
# validates :source, format: { with: /\Ahttps?/ }, if: ->(record) {record.file.blank?}, on: :create