Greg Hauptmann
2006-Sep-15 11:15 UTC
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---