Joe Fiorini
2010-Feb-20 16:36 UTC
Patch for bundled gems that depend on application config settings
Would appreciate any thoughts/feedback on my ticket/patch. https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4009-move-bundlerrequire-below-class-application-end Thanks! - Joe -- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Nicolás Sanguinetti
2010-Feb-20 20:43 UTC
Re: Patch for bundled gems that depend on application config settings
On Sat, Feb 20, 2010 at 2:36 PM, Joe Fiorini <joe@faithfulgeek.org> wrote:> Would appreciate any thoughts/feedback on my ticket/patch.When are the routes initialized now? Some routes may depend on gems being loaded (like devise, for example)> https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4009-move-bundlerrequire-below-class-application-end > > Thanks! > - Joe > > -- > 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 rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. > >-- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Yehuda Katz
2010-Feb-20 21:31 UTC
Re: Patch for bundled gems that depend on application config settings
Gems are loaded first so that, if they want, they can set things up for application configuration. If you want to hook into a LATER point, you can create your own Railtie and provide an #initializer, which you can set to run whenever you want :) Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Sat, Feb 20, 2010 at 8:36 AM, Joe Fiorini <joe@faithfulgeek.org> wrote:> Would appreciate any thoughts/feedback on my ticket/patch. > > > https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4009-move-bundlerrequire-below-class-application-end > > Thanks! > - Joe > > -- > 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 rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.