Skip to content

Commit

Permalink
allow public_on for sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
gr8bit committed Sep 3, 2023
1 parent 18002db commit cdd9537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/alchemy/json_api/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Alchemy
# With Ransack 4 we need to define the attributes
# that are allowed to be searched.
def Page.ransackable_attributes(_auth_object = nil)
super | %w[page_layout]
super | %w[page_layout public_version_public_on]
end

def Page.ransackable_associations(_auth_object = nil)
Expand Down

0 comments on commit cdd9537

Please sign in to comment.