In my rake task I try to use the classes and methods defined in a plugin. Seems that plugins are not hooked up during the rake task run. Models are also not hooked up. I can require ''ModelName'' I can require ''activerecord'' But my Model depends a lot on the plugin (globalize) and initiation of the whole globalize plugin in the .rake file would be a mess. What is the simplest way to hook up the whole environment during the rake task? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 26, 4:13 pm, Alexey Skoblikov <alm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > What is the simplest way to hook up the whole environment during the > rake task?Make your task depend on the :environment task. Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you very much! On 26 Септ, 18:44, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sep 26, 4:13 pm, Alexey Skoblikov <alm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > What is the simplest way to hook up the whole environment during the > > rake task? > > Make your task depend on the :environment task. > > Fred--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---