Extending an Extension

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
[email protected]

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.



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs