Skip to content

Commit

Permalink
Use the optimized page in page layouts controller
Browse files Browse the repository at this point in the history
By using this optimized page model in the page layouts
helps to reduce the db queries for that controller as well.
  • Loading branch information
tvdeyen committed Jan 22, 2021
1 parent 315a2ad commit 6bb2212
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class LayoutPagesController < JsonApi::PagesController
private

def base_page_scope
Page.all
::Alchemy::JsonApi::Page.all
end

def page_scope
Expand Down

0 comments on commit 6bb2212

Please sign in to comment.