Module: Ohm::SoftDelete::ClassMethods

Defined in:
lib/ohm/softdelete.rb

Instance Method Summary collapse

Instance Method Details

#deletedObject


73
74
75
# File 'lib/ohm/softdelete.rb', line 73

def deleted
  Set.new(self, key, key[:deleted])
end

#exists?(id) ⇒ Boolean


77
78
79
# File 'lib/ohm/softdelete.rb', line 77

def exists?(id)
  super || deleted.exists?(id)
end