# Extending an Extension

**URL:** <https://www.ruby-forum.com/t/extending-an-extension/104893>\
**Category:** Radiant CMS\
**Created:** [May 23, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/extending-an-extension/104893 "2007-05-23T16:51:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Thompson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@James\_Thompson](https://www.ruby-forum.com/u/James_Thompson)\
**Post date:** [May 23, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/extending-an-extension/104893/1 "2007-05-23T16:51:24Z")

</div>

As part of a catalog extension I am working on I am trying to extend  
the existing search extension. This is working as expected for the  
most part by simply calling SearchPage.send :include,  
CatalogSearchExtension and placing my work in lib/  
catalog\_search\_extension.rb under my extension. However, one thing is  
behaving strangely. Although my additional tags are getting included  
my customized render method seems to be getting left out. I am  
wondering if extensions are loaded in alphabetical order which could  
cause my custom methods to be overwritten when the main extension is  
loaded. Is there a way to ensure my extension is loaded after the  
search extension? Has anyone else encountered anything like this?

James Thompson  
IT Director & Web Programmer  
Stewart & Associates, Inc.  
550 West Kentucky Street  
Louisville, KY 40203  
(502) 583.5502  
removed\_email\_address@domain.invalid  
[http://www.stewartaa.com/](http://www.stewartaa.com/)

---

<div class="post-metadata">

**Author:** ![James\_Thompson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@James\_Thompson](https://www.ruby-forum.com/u/James_Thompson)\
**Post date:** [May 23, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/extending-an-extension/104893/2 "2007-05-23T17:10:29Z")

</div>

James Thompson wrote:

> search extension? Has anyone else encountered anything like this?  
> You should be able to use numeric prefixes on your extension  
> directories to specify an arbitrary order in which they are loaded.

[http://dev.radiantcms.org/radiant/changeset/421](http://dev.radiantcms.org/radiant/changeset/421)

Oliver
