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

@ -246,4 +246,8 @@ class ProxyExercise < ApplicationRecord
def select_easiest_exercise(exercises)
exercises.order(:expected_difficulty).first
end
def self.ransackable_attributes(_auth_object = nil)
%w[title]
end
end