# Modified Engines Patch

**URL:** <https://www.ruby-forum.com/t/modified-engines-patch/98530>\
**Category:** Radiant CMS\
**Created:** [July 15, 2006, 3:06pm UTC](https://www.ruby-forum.com/t/modified-engines-patch/98530 "2006-07-15T15:06:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [July 15, 2006, 3:06pm UTC](https://www.ruby-forum.com/t/modified-engines-patch/98530/1 "2006-07-15T15:06:01Z")

</div>

Alright enough talk, time for some code. I’ve submitted a patch to help  
alleviate all of our woes and give developers who are currently  
developing  
extensions and things a chance to do it on a platform that might be  
viable  
going forward.

[http://dev.radiantcms.org:9007/radiant/ticket/79](http://dev.radiantcms.org:9007/radiant/ticket/79)

> From the patch details:

This was diff’d against the entire revision 85 trunk. There are only 2  
modifications to the existing codebase but I did it against the entire  
directory to make my life easier.

This is a large patch which includes 4 things that will allow developers  
to  
extend radiant in many ways.

1. A modified version of the engines plugin

2. A modified environment.rb that calls Engines.start to load all  
engines

3. A modified routes.rb that loads high priority routes using the  
Engines::Routes class

4. A test engine that shows how to layout a plugin and utilize the new  
routes  
class

This will make everyone happy, rainbows and butterflies, and only 2  
lines of  
code added to the existing radiant codebase.

Engines have built in support for modifying models, views, controllers,  
testing,  
migrations, and this version now has high priority routing.

More information about the Engines system can be found here:

[http://www.rails-engines.org/](http://www.rails-engines.org/)

If you don’t want to wait for this patch to be pushed through I have the  
full  
codebase with patch applied here:

[http://www.besquared.net/files/radiant\_engines.tar](http://www.besquared.net/files/radiant_engines.tar)

Josh @ besquared

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [July 16, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/modified-engines-patch/98530/2 "2006-07-16T18:50:52Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Alright enough talk, time for some code. I’ve submitted a patch to help  
> alleviate all of our woes and give developers who are currently developing  
> extensions and things a chance to do it on a platform that might be viable  
> going forward.

> 1. A modified version of the engines plugin

This is really exciting… have you talked to James about including this  
in the base Engines distribution? Seems like it would make the Rails  
core folks happier too, and address many of the multi-engine concerns  
you raised.

Jay
