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
Post a Comment