how does Rails order/prioritorize the class extensions/overrides that occur??

Hi,

Can anyone summarise (or provide a link) how ruby & rails together perform the class/module loading in terms of the order in which they are performed?

For example I have a few plugin’s which I am using which extend some of the core rails classes, so I’m not sure whether these is a potential for a clash here? That is if I have more than one plugin (or module generally) that extended a particular method of a particular rails or ruby class would only 1 of these really work? Which order would it occur in.

A flow diagram of how rails approaches loading up classes covering off items such as: ruby classes, rails, plugin classes, engine classes, your own classes. Order of preference for classes within the same category ( e.g. what if I defined the same class more than once in my own code base).

Tks