Skip to content

Instantly share code, notes, and snippets.

@metalelf0
Created November 14, 2018 13:49
Show Gist options
  • Save metalelf0/dea5f296f8afcd15dbe395e1401e7261 to your computer and use it in GitHub Desktop.
Save metalelf0/dea5f296f8afcd15dbe395e1401e7261 to your computer and use it in GitHub Desktop.
A rails model template to better organize your code
# 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