Last active
August 29, 2015 14:06
-
-
Save yyandrew/077b6c6c90c8ed0fc90b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Article.joins(:tags).where(tags: {id: tag_ids_arr}).order("articles.updated_at DESC").pluck(:id).uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment