Sha256: b271bc9a36692d231828c47833a21411e015dc9b447ac923e925e1d2a2937ffb

Contents?: true

Size: 147 Bytes

Versions: 5

Compression:

Stored size: 147 Bytes

Contents

ActiveRecord::Base.descendants.each do |klass|
  Object.send(:remove_const, klass.name.to_sym) if Object.constants.include?(klass.name.to_sym)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreign_key_validation-1.1.2 spec/support/reset_models.rb
foreign_key_validation-1.1.1 spec/support/reset_models.rb
foreign_key_validation-1.1.0 spec/support/reset_models.rb
foreign_key_validation-1.0.1 spec/support/reset_models.rb
foreign_key_validation-1.0.0 spec/support/reset_models.rb