# File lib/dm-core/types/paranoid_datetime.rb, line 7 def self.bind(property) model = property.model repository = property.repository model.send(:set_paranoid_property, property.name){DateTime.now} model.class_eval "\ndef self.with_deleted\nwith_exclusive_scope(\#{property.name.inspect}.not => nil) do\nyield\nend\nend\n\ndef destroy\nself.class.paranoid_properties.each do |name, blk|\nattribute_set(name, blk.call(self))\nend\nsave\nend\n", __FILE__, __LINE__ model.default_scope(repository.name).update(property.name => nil) end