Skip to content

Instantly share code, notes, and snippets.

@duykhoa
Created April 19, 2015 04:23
Show Gist options
  • Save duykhoa/47d23cc1dfa4d7e22e60 to your computer and use it in GitHub Desktop.
Save duykhoa/47d23cc1dfa4d7e22e60 to your computer and use it in GitHub Desktop.
rails model conventions

Base on rails guide

  1. module include, extend
  2. scope (default first, then other scopes)
  3. constant
  4. attr
  5. association
  6. validate
  7. callback
  8. method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment