Order ActiveRecord validations above associations

* Mirror class order in tests
In most languages and frameworks, I like seeing the properties of an object
listed first so I can understand its data structure before getting into its
behavior. Associations to me are about data structure. Validations,
callbacks, etc. are about behavior.


On Fri, Jun 6, 2014 at 4:20 PM, Greg Lazarev <notifications@github.com>
wrote:

> In style/README.md:
>
> > @@ -190,6 +190,7 @@ Rails
> >  * Name initializers for their gem name.
> >  * Order ActiveRecord associations alphabetically by attribute name.
> >  * Order ActiveRecord validations alphabetically by attribute name.
> > +* Order ActiveRecord validations above ActiveRecord associations.
>
> [image: :+1:] for associations first. I think they are more important!
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/thoughtbot/guides/pull/188/files#r13515103>.
>