StandardRB

This commit is contained in:
2023-12-02 20:32:57 +11:00
parent c6e0c6e832
commit 8501279eaa
15 changed files with 29 additions and 34 deletions

View File

@@ -186,12 +186,12 @@ module Adamantium
.order(:year)
.to_a
end
def search(term:)
posts
.where(post_type: "post", location: nil)
.published
.search(term: term)
.search(term: term)
.combine(:tags)
.order(Sequel.desc(:published_at))
.to_a