Skip to content

Instantly share code, notes, and snippets.

@angrygorilla
Forked from joshuapinter/model.template.txt
Created April 12, 2021 23:15
Show Gist options
  • Select an option

  • Save angrygorilla/af174975dc593c2c08354e212dd18a8b to your computer and use it in GitHub Desktop.

Select an option

Save angrygorilla/af174975dc593c2c08354e212dd18a8b to your computer and use it in GitHub Desktop.
Rails Model Template
class [Your Class Here] < ActiveRecord::Base
##################################################################################################
### Attributes ###################################################################################
##################################################################################################
### Constants ####################################################################################
##################################################################################################
### Includes and Extensions ######################################################################
##################################################################################################
### Callbacks ####################################################################################
##################################################################################################
### Associations #################################################################################
##################################################################################################
### Validations ##################################################################################
##################################################################################################
### Scopes #######################################################################################
##################################################################################################
### Other ########################################################################################
##################################################################################################
### Class Methods ################################################################################
##################################################################################################
### Instance Methods #############################################################################
#########
protected
#########
#######
private
#######
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment