search for: usercase

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

Did you mean: userbase
2012 Jun 07
3
Couldn't reload a module when it's changed. Tried :require_dependency, :watchable_dirs, :unloadable
I''m completely messed with module reloading in development mode. I have to restart app server each time I edit lib/z/nginx.rb which is included in app/models/user_case.rb app/models/user_case.rb 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...