Modified Engines Patch

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

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

    • Engines will now load their views over the existing views in the
      application
    • Initial support for adding routes through an Engines::Routes class
  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/

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

Josh @ besquared

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

    • Engines will now load their views over the existing views in the
      application
    • Initial support for adding routes through an Engines::Routes class

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

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