Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant element scope from element helper
Browse files Browse the repository at this point in the history
The available scope is the default scope for Pages elements
relation.
tvdeyen committed Jun 17, 2019
1 parent e905168 commit 51f7330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/alchemy/elements_helper.rb
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ module ElementsHelper
#
# class MyCustomNewsArchive
# def elements(page:)
# news_page.elements.available.named('news').order(created_at: :desc)
# news_page.elements.named('news').order(created_at: :desc)
# end
#
# private

0 comments on commit 51f7330

Please sign in to comment.