Remove Ransack from Exercise edit for tags

* Also improve Ransack usage of attributes and associations
This commit is contained in:
Sebastian Serth
2022-08-20 01:28:47 +02:00
parent 83feb67dd5
commit 166aa3cc6f
10 changed files with 46 additions and 3 deletions

View File

@ -31,4 +31,8 @@ working_time: time_to_f(item.exercise.average_working_time)}
def to_s
"#{I18n.t('activerecord.models.exercise_collection.one')}: #{name} (#{id})"
end
def self.ransackable_attributes(_auth_object = nil)
%w[id]
end
end