DEV Community

Michel Sánchez Montells
Michel Sánchez Montells

Posted on • Updated on

Rails Models Files Organization

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
Enter fullscreen mode Exit fullscreen mode

It is worth mentioning or thanks to this project rails_standards
The place where I found this guide.

Top comments (0)