require_dependency is designed to be used for the purposes you describe. A lot of things aren't documented in the Rails API that are public. Doesn't mean that you shouldn't use them.
On Saturday, 7 April 2012 at 9:28 AM, Rodrigo Rosenfeld Rosas wrote: > If so, shouldn't it be documented in the Rails API? > > Or is there a better way to allow class reloading of my files under lib. > I mean, I know about config.autoload_paths, but I want to be explicit > about my requires. I just want to be able to reload then on each request > when I'm working on them. > > require_dependency seems to do just that but I'm worried since it is not > mentioned in the official public API. > > -- > 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 > (mailto:rubyonrails-core@googlegroups.com). > To unsubscribe from this group, send email to > rubyonrails-core+unsubscr...@googlegroups.com > (mailto:rubyonrails-core+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.