Module: RailsDevelopmentBoost::ReferencePatch
- Defined in:
- lib/rails_development_boost/reference_patch.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.apply! ⇒ Object
6 7 8 |
# File 'lib/rails_development_boost/reference_patch.rb', line 6 def self.apply! ActiveSupport::Dependencies::ClassCache.send :include, self end |
Instance Method Details
#loose!(const_name) ⇒ Object
10 11 12 13 |
# File 'lib/rails_development_boost/reference_patch.rb', line 10 def loose!(const_name) @store.delete(const_name) @store.delete("::#{const_name}") # constantize is sometimes weird like that end |