Skip to content

Commit 18002db

Browse files
committed
allow public_version association to Ransack
1 parent 1d3ff27 commit 18002db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/models/alchemy/json_api/page.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ def Page.ransackable_attributes(_auth_object = nil)
55
super | %w[page_layout]
66
end
77

8+
def Page.ransackable_associations(_auth_object = nil)
9+
super | %w[public_version]
10+
end
11+
812
module JsonApi
913
class Page < SimpleDelegator
1014
attr_reader :page_version_type, :page_version

0 commit comments

Comments
 (0)