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
-
Pratik June 5th, 2008 @ 10:35 PM
- Assigned user set to Rick
-
Repository June 8th, 2008 @ 06:07 PM
- State changed from new to resolved
(from [86a042ddd9dba8f62e7328c7258a798aef73d57f]) Make plugins initialize also from rails/init.rb to ensure consistency with gems used as plugins
[#272 state:resolved]
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>
People watching this ticket
Attachments
Tags
Referenced by
- 441 Add more support for gems frozen in the vendor directory http://rails.lighthouseapp.com/p...
- 515 Make plugin generator create rails/init.rb This is another patch (after #272 and others) which make...