Created
October 4, 2017 19:20
-
-
Save thescubageek/1cdaddd04a4f437b5eec50718cd08245 to your computer and use it in GitHub Desktop.
WIP: Find and return ActiveRecord models by attribute according to specific order
This file contains hidden or 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
Widget.where(id: child_widget_ids).index_by(&:id).values_at(*child_widget_ids).squish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment