Just a place where to come back in the feature when I forget how to organize my Rails Models.
class MyModel < ActiveRecord::Base # extends # includes # relationships # validations # callbacks # scopes # delegates # additional config (i.e. accepts_nested_attribute_for etc...) # class methods # public instance methods # protected instance methods # private instance methods end
It is worth mentioning or thanks to this project rails_standards
The place where I found this guide.
Top comments (0)