Skip to content

Instantly share code, notes, and snippets.

@domagude
Last active November 29, 2017 10:03
Show Gist options
  • Save domagude/008e11c4f564b5dde0e912b4dfd99af7 to your computer and use it in GitHub Desktop.
Save domagude/008e11c4f564b5dde0e912b4dfd99af7 to your computer and use it in GitHub Desktop.
...
default_scope -> { includes(:user).order(created_at: :desc) }
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment