This project is archived and is in readonly mode.
Make plugins also initialize form rails/init.rb
Reported by Jacek Becela | May 28th, 2008 @ 09:09 PM
There is an ongoing trend to package Rails plugins as gems. Features recently added to Rails (config.gem, rake gems:*) make this only easier.
Before we forget about plugins (if we ever) there will be some period of coexistence of both systems.
With this patch you can have one codebase which can be used both as a gem and a plugin.
The patch makes plugins use rails/init.rb if exists just like in gems (and init.rb if it doesn't). Now one would have to keep both init.rb and rails/init.rb in your repository.
In other words I wanted to be able to choose between those two:
./script/plugin install git://github.com/user/plugin.git
sudo gem install user-plugin --source=http://gems.github.com
and have a clean codebase without two init.rb files (one in main directory and one in rails/init.rb).
Attachment contains patch with tests.
Comments and changes to this ticket
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>