Forum: Ruby on Rails Do non-AR models reload in development?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ryan W. (Guest)
on 2006-01-23 04:51
(Received via mailing list)
When working in development mode, do non-AR models reload? I'm not
seeing changes I make reflected in the app unless I restart webrick,
so I'm assuming the answer is no. How would get these model objects to
reload just as their AR decendant brothers and sisters do?

--Ryan
Ezra Z. (Guest)
on 2006-01-23 05:04
(Received via mailing list)
On Jan 22, 2006, at 6:43 PM, Ryan W. wrote:

>
No they don't get reloaded on each request you have to restart. Or
you can use require_dependency 'mymodel' to make them reload after
each request.

Cheers-

-Ezra Z.
WebMaster
Yakima Herald-Republic Newspaper
removed_email_address@domain.invalid
509-577-7732
This topic is locked and can not be replied to.