Skip to content

Commit

Permalink
allow public_version association to Ransack
Browse files Browse the repository at this point in the history
  • Loading branch information
gr8bit committed Sep 3, 2023
1 parent 1d3ff27 commit 18002db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/alchemy/json_api/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ def Page.ransackable_attributes(_auth_object = nil)
super | %w[page_layout]
end

def Page.ransackable_associations(_auth_object = nil)
super | %w[public_version]
end

module JsonApi
class Page < SimpleDelegator
attr_reader :page_version_type, :page_version
Expand Down

0 comments on commit 18002db

Please sign in to comment.