# File lib/dm-core/types/paranoid_boolean.rb, line 8 def self.bind(property) model = property.model repository = property.repository model.send(:set_paranoid_property, property.name){true} model.class_eval "\ndef self.with_deleted\nwith_exclusive_scope(\#{property.name.inspect} => true) 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 => false) end