mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
This reverts commit cdc8e9de1b.
It's made things worse internally and on meta.
This commit is contained in:
@@ -6,10 +6,6 @@ class UploadReference < ActiveRecord::Base
|
||||
|
||||
delegate :to_markdown, to: :upload
|
||||
|
||||
def target?(target_to_check)
|
||||
self.target_id == target_to_check.id && self.target_type == target_to_check.class.to_s
|
||||
end
|
||||
|
||||
def self.ensure_exist!(upload_ids: [], target: nil, target_type: nil, target_id: nil)
|
||||
if !target && !(target_type && target_id)
|
||||
raise "target OR target_type and target_id are required"
|
||||
|
||||
Reference in New Issue
Block a user