Created
January 20, 2010 11:46
-
-
Save overture8/281790 to your computer and use it in GitHub Desktop.
How to sort by a field in an EmbeddedDcouemt (MongoMapper)
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
post.comments.sort_by(&:created_at) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment