# How does Rails order/prioritorize the class extensions/overr

**URL:** <https://www.ruby-forum.com/t/how-does-rails-order-prioritorize-the-class-extensions-overr/68784>\
**Category:** Rails\
**Created:** [September 15, 2006, 1:19pm UTC](https://www.ruby-forum.com/t/how-does-rails-order-prioritorize-the-class-extensions-overr/68784 "2006-09-15T13:19:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [September 15, 2006, 1:19pm UTC](https://www.ruby-forum.com/t/how-does-rails-order-prioritorize-the-class-extensions-overr/68784/1 "2006-09-15T13:19:48Z")

</div>

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
