This project is archived and is in readonly mode.
reload! doesn't reload
-
RomD
Same problem here.
I have to close and reopen the console to see the changes after using 'rake db:migrate'. -
marcolz
- Tag changed from activerecord, console, reload to activerecord, activeresource, console, reload, reload!
Same here, also when attempting to reload an ActiveResource::Base class, with Rails 3.0.0.beta.
-
marcolz
- Tag changed from activerecord, activeresource, console, reload, reload! to development environment, activerecord, activeresource, console, reload, reload!
It's a problem related not only to the console, but to the entire development environment: even though
grep cache_classes config/environments/development.rbreads "config.cache_classes = false", still the models are not reloaded. -
Fernando Blat
The actual reload callbacks seem to have been disappeared in the transition to the new callback system for Rails 3.
I am attaching a patch which restores all the callbacks needed to reset ActiveRecord and ActiveSupport, just like it did in Rails 2.3.x
-
José Valim
- Assigned user set to José Valim
-
Christos Zisopoulos
Using
reload!in the console is not working for me either (Rails 3.0.0.beta1 and any Ruby 1.8.7/1.9.1)The patch seems to fix it.
+1
-
RomD
Thanks for the patch, seems to work fine.
-
Repository
(from [e6dffb70e6c1d524eeb5a40e1f8e01b067781143]) reload! on console now works as expected. [#3822 reload! doesn't reload status:resolved] http://github.com/rails/rails/commit/e6dffb70e6c1d524eeb5a40e1f8e01...
-
Tiago Franco
This is back again on 3.0.3 :(
-
William Denniss
This is broken again in 3.0.4.
I have logged a new bug #6447 reload! doesn't reload for the regression as I see no way to re-open this bug.
