test: Improve test suite setup

Этот коммит содержится в:
Mattia Roccoberton
2025-04-13 15:00:22 +02:00
родитель 815491cb31
Коммит b38ce0713d
18 изменённых файлов: 114 добавлений и 209 удалений

Просмотреть файл

@@ -1,7 +1,9 @@
ActiveSupport::Reloader.to_prepare do
Rails.application.reloader.to_prepare do
ActiveStorage::Attachment.class_eval do
def self.ransackable_attributes(auth_object = nil)
%w[blob_id created_at id name record_id record_type]
class << self
def ransackable_attributes(auth_object = nil)
%w[blob_id created_at id name record_id record_type]
end
end
end
end