Fix study_group index page

This commit is contained in:
Sebastian Serth
2022-08-20 10:46:33 +02:00
parent 32413058d6
commit 6208d8b7ea

View File

@ -19,4 +19,12 @@ class StudyGroup < ApplicationRecord
def to_s
name.presence || "StudyGroup #{id}"
end
def self.ransackable_attributes(_auth_object = nil)
%w[name]
end
def self.ransackable_associations(_auth_object = nil)
%w[consumer]
end
end