Created
November 14, 2018 13:49
-
-
Save metalelf0/dea5f296f8afcd15dbe395e1401e7261 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