-
-
Save elikem/42724a09801d97e3afdee61539d5df2b to your computer and use it in GitHub Desktop.
A rails model template to better organize your code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # provided by https://www.zmwolski.com/Organizing-Ruby-on-Rails-Models | |
| class User < ActiveRecord::Base | |
| # == Constants ============================================================ | |
| # == Attributes =========================================================== | |
| # == Extensions =========================================================== | |
| # == Relationships ======================================================== | |
| # == Validations ========================================================== | |
| # == Scopes =============================================================== | |
| # == Callbacks ============================================================ | |
| # == Class Methods ======================================================== | |
| # == Instance Methods ===================================================== | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment