Skip to content

Instantly share code, notes, and snippets.

@adamkirkwood
Created June 2, 2016 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamkirkwood/1f42fdfde8db50376886245a491de7bd to your computer and use it in GitHub Desktop.
Save adamkirkwood/1f42fdfde8db50376886245a491de7bd to your computer and use it in GitHub Desktop.
Simple structure to structure Rails Models (https://www.zmwolski.com/Organizing-Ruby-on-Rails-Models)
'.source.ruby':
'Model class structure':
'prefix': '#=='
'body': '''
# == Constants ============================================================
# == Attributes ===========================================================
# == Extensions ===========================================================
# == Relationships ========================================================
# == Validations ==========================================================
# == Scopes ===============================================================
# == Callbacks ============================================================
# == Class Methods ========================================================
# == Instance Methods =====================================================
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment