From 2764111660495bb40348c03177ac4070e9218f9d Mon Sep 17 00:00:00 2001 From: Pascal Zumkehr Date: Fri, 22 Nov 2024 10:46:59 +0100 Subject: [PATCH] Simplify list table sorting again --- app/controllers/event/camp/kinds_controller.rb | 6 ------ app/controllers/event/course/conditions_controller.rb | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/controllers/event/camp/kinds_controller.rb b/app/controllers/event/camp/kinds_controller.rb index 651f8997..b8c1e8c6 100644 --- a/app/controllers/event/camp/kinds_controller.rb +++ b/app/controllers/event/camp/kinds_controller.rb @@ -6,12 +6,6 @@ class Event::Camp::KindsController < SimpleCrudController self.permitted_attrs = [:label] - private - - def list_entries - super.list - end - class << self def model_class Event::Camp::Kind diff --git a/app/controllers/event/course/conditions_controller.rb b/app/controllers/event/course/conditions_controller.rb index 8ccb3642..7831b526 100644 --- a/app/controllers/event/course/conditions_controller.rb +++ b/app/controllers/event/course/conditions_controller.rb @@ -7,7 +7,7 @@ class Event::Course::ConditionsController < SimpleCrudController self.nesting = Group self.permitted_attrs = [:content, :label] - self.sort_mappings = {content: {joins: [:rich_text_content], order: ["action_text_rich_texts.body"]}} + self.sort_mappings = {content: "action_text_rich_texts.body"} helper_method :group