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.

Revisions

  1. @joshuapinter joshuapinter revised this gist Feb 11, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions model.template.txt
    Original file line number Diff line number Diff line change
    @@ -11,13 +11,13 @@ class [Your Class Here] < ActiveRecord::Base
    ##################################################################################################
    ### Includes and Extensions ######################################################################


    ##################################################################################################
    ### Associations #################################################################################
    ### Callbacks ####################################################################################


    ##################################################################################################
    ### Callbacks ####################################################################################
    ### Associations #################################################################################


    ##################################################################################################
  2. @joshuapinter joshuapinter revised this gist May 1, 2017. No changes.
  3. @joshuapinter joshuapinter revised this gist May 1, 2017. 1 changed file with 20 additions and 21 deletions.
    41 changes: 20 additions & 21 deletions model.template.txt
    Original file line number Diff line number Diff line change
    @@ -6,46 +6,45 @@ class [Your Class Here] < ActiveRecord::Base

    ##################################################################################################
    ### Constants ####################################################################################


    ##################################################################################################
    ### Includes and Extensions ######################################################################


    ##################################################################################################
    ### Associations #################################################################################


    ##################################################################################################
    ### Callbacks ####################################################################################


    ##################################################################################################
    ### Validations ##################################################################################


    ##################################################################################################
    ### Scopes #######################################################################################


    ##################################################################################################
    ### Other ########################################################################################


    ##################################################################################################
    ### Class Methods ################################################################################


    ##################################################################################################
    ### Instance Methods #############################################################################





    #########
    protected
    #########


    #######
    private
    #######
  4. @joshuapinter joshuapinter revised this gist Apr 24, 2014. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions model.template.txt
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,10 @@ class [Your Class Here] < ActiveRecord::Base

    ##################################################################################################
    ### Attributes ###################################################################################


    ##################################################################################################
    ### Constants ####################################################################################


    ##################################################################################################
    @@ -22,10 +26,6 @@ class [Your Class Here] < ActiveRecord::Base

    ##################################################################################################
    ### Scopes #######################################################################################


    ##################################################################################################
    ### Constants ####################################################################################


    ##################################################################################################
  5. @joshuapinter joshuapinter renamed this gist Dec 9, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. @joshuapinter joshuapinter created this gist Dec 8, 2012.
    54 changes: 54 additions & 0 deletions model.template.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    class [Your Class Here] < ActiveRecord::Base

    ##################################################################################################
    ### Attributes ###################################################################################


    ##################################################################################################
    ### Includes and Extensions ######################################################################


    ##################################################################################################
    ### Associations #################################################################################


    ##################################################################################################
    ### Callbacks ####################################################################################


    ##################################################################################################
    ### Validations ##################################################################################


    ##################################################################################################
    ### Scopes #######################################################################################


    ##################################################################################################
    ### Constants ####################################################################################


    ##################################################################################################
    ### Other ########################################################################################


    ##################################################################################################
    ### Class Methods ################################################################################


    ##################################################################################################
    ### Instance Methods #############################################################################



    #########
    protected
    #########


    #######
    private
    #######


    end