search for: explicitly_unloadable_const

Displaying 1 result from an estimated 1 matches for "explicitly_unloadable_const".

2012 Jun 07
3
Couldn't reload a module when it's changed. Tried :require_dependency, :watchable_dirs, :unloadable
...require_dependency ''z/nginx'' class UserCase < ActiveRecord::Base include Z::Nginx unloadable I added to environment.rb config.watchable_dirs[''lib''] = [:rb] config.watchable_dirs[''lib/z''] = [:rb] ActiveSupport::Dependencies.explicitly_unloadable_constants += %w[Z::Nginx UserCase] But that doesn''t work for me. When I change a string value, which is returned by the module method, I get in a view the old value until app server restarted. How can I get the new value without restaring app server? Rails 3.2.3 -- Posted via http://www.rub...