ruby on rails - Is there a standard code order in a model? -


i wondering if there type of convention on how code in models should ordered.

for example...

class foobar   #includes    #associations    #accepts_nested_attributes_for    #validations    etc... end 

specifically looking default model template replace standard one.

no there not. @ point have use own conventions , readability of code won't affected such small differences (e.g. placing reflections before validations , vice versa instance).


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -