It's ticket #329[1]. Quickly summarizing, it allows the plugins to do  
the following in their initializing:

config.draw_for :plugin_admin do |map|
   # normal routing definition
end

or

# grabs the plugin's name and names this block after the plugin
config.plugin_routes do |map|
   # normal routing definition
end

Then in the app's config/routes.rb

map.plugin_routes :plugin_admin
# or more automated
map.plugin_routes :all

This approach keeps all the control in the app developer's hands. The  
developer can decide when, if and in what order plugin routes are  
defined.
Rich

[1] 
http://rails.lighthouseapp.com/projects/8994/tickets/329-add-an-api-for-plugins-to-register-routes

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to