Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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