Sha256: d41fb7fcb1a5ef27d13e66517dd8186f3870a4781ac711422f74ea04f01d9beb
Contents?: true
Size: 201 Bytes
Versions: 1
Compression:
Stored size: 201 Bytes
Contents
module AnafHabtm::HashExtension KEYS_TO_AVOID = ["_destroy", "id"] def copy_without_destroy a = {} self.each {|key,val| a[key]=val unless KEYS_TO_AVOID.include?(key.to_s)} a end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
anaf_habtm-0.0.8 | lib/hash.rb |