On Tuesday, November 20, 2012 5:26:53 PM UTC, Jordon Bedwell wrote: > > > 1.) Autloading is for constants not for anything else and it's > preferable you use autoload_once_paths instead of autoload_paths (at > least from my experience, others may differ on opinion and I don't > have any evidence to back up my claims other than what the name > implies and threading and what not.) > > The difference between autoload_paths and autoload_once_paths is that in the development the former can be reloaded between requests whereas the latter will not. Which one is prefererable depends on what you're doing, although of course the reloading behaviour is handy if those files are under active development. That doesn't really work when the purpose of the file is to patch a core class that can't itself be reloaded
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 [email protected]. To unsubscribe from this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/T0RWkpid0xEJ. For more options, visit https://groups.google.com/groups/opt_out.

