test: update test suite config

Этот коммит содержится в:
Mattia Roccoberton
2024-02-26 09:11:31 +01:00
родитель 2215c7337b
Коммит c935e16d25
21 изменённых файлов: 59 добавлений и 27 удалений

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

@@ -3,11 +3,19 @@
class Profile < ApplicationRecord
belongs_to :author, inverse_of: :profile, touch: true
def to_s
description
end
# has_rich_text :description
def self.ransackable_attributes(auth_object = nil)
%w[author_id created_at description id updated_at]
# def to_s
# description
# end
class << self
def ransackable_associations(auth_object = nil)
%w[author]
end
def ransackable_attributes(_auth_object = nil)
%w[author_id created_at description id updated_at]
end
end
end