Module: RailsDevelopmentBoost::ReferencePatch::ClassMethods

Defined in:
lib/rails_development_boost/reference_patch.rb

Instance Method Summary collapse

Instance Method Details

#loose!(const_name) ⇒ Object



21
22
23
24
# File 'lib/rails_development_boost/reference_patch.rb', line 21

def loose!(const_name)
  constants.delete(const_name)
  constants.delete("::#{const_name}") # constantize is sometimes weird like that
end