Skip to content

Commit

Permalink
Simplify list table sorting again
Browse files Browse the repository at this point in the history
  • Loading branch information
codez committed Nov 22, 2024
1 parent e2d12cb commit 2764111
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions app/controllers/event/camp/kinds_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/event/course/conditions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2764111

Please sign in to comment.