Skip to content

Instantly share code, notes, and snippets.

@muhammadyana
Created February 22, 2022 03:17
Show Gist options
  • Save muhammadyana/ad07a1b691c5eb2ff69b42011388b786 to your computer and use it in GitHub Desktop.
Save muhammadyana/ad07a1b691c5eb2ff69b42011388b786 to your computer and use it in GitHub Desktop.
Rails model best practice
# Extends ...................................................................
# Includes ..................................................................
# Variables .................................................................
# Fields (If use mongo) .....................................................
# Relationships .............................................................
# Validations ...............................................................
# Callbacks .................................................................
# Scopes ....................................................................
# Uploaders .................................................................
# Additional config (i.e. accepts_nested_attributes_for etc...) .............
# Auditeds ..................................................................
# Enums .....................................................................
# Delegate ..................................................................
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment