Fix study_group index page
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user