Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Remove deprecated Query#language usage in example - #81

Merged
jage merged 2 commits into
masterfrom
example-fix-language-deprecation
Mar 27, 2019
Merged

jage merged 2 commits into
masterfrom
example-fix-language-deprecation

Conversation

@jage

@jage jage commented Mar 27, 2019

Copy link
Copy Markdown
Contributor

Removes the deprecation warning.

Removes the deprecation warning.
"sort:published",
]
query_parts << "lang:#{language}" if language
query_parts << keyword

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guess this could be stuffed into the query_parts right away?

     query_parts = [
        "sort-order:asc",
        "sort:published",
        keyword,
      ]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jupp, that should work fine.

@jage
jage merged commit ed07066 into master Mar 27, 2019
@jage
jage deleted the example-fix-language-deprecation branch March 27, 2019 14:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants