Christopher J. Bottaro
2006-Nov-16 16:40 UTC
Where to put ''require''s to be available to all models?
Hello, Where should I put a require such that it''s available to all my models? Or better, the entire application. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Keynan Pratt
2006-Nov-16 16:52 UTC
Re: Where to put ''require''s to be available to all models?
Christopher J. Bottaro wrote:> Hello, > Where should I put a require such that it''s available to all my models? > Or better, the entire application. Thanks.depends on what it is that you need to require /app/controller/application.rb is a good location or in each individual model -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Douglas Shearer
2006-Nov-16 16:56 UTC
Re: Where to put ''require''s to be available to all models?
Christopher J. Bottaro wrote:> Hello, > Where should I put a require such that it''s available to all my models? > Or better, the entire application. Thanks.Put it at the bottom of your environment.rb, that''s the place for that sort of stuff. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Christopher J. Bottaro
2006-Nov-16 21:05 UTC
Re: Where to put ''require''s to be available to all models?
Douglas Shearer wrote:> Christopher J. Bottaro wrote: > > Hello, > > Where should I put a require such that it''s available to all my models? > > Or better, the entire application. Thanks. > > Put it at the bottom of your environment.rb, that''s the place for that > sort of stuff.Ahh, perfect, thank you ... :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---