We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc515d1 commit 386cacdCopy full SHA for 386cacd
lib/paranoia.rb
@@ -33,6 +33,10 @@ def only_deleted
33
end
34
alias :deleted :only_deleted
35
36
+ def without_deleted
37
+ where(paranoia_column => nil)
38
+ end
39
+
40
def restore(id_or_ids, opts = {})
41
ids = Array(id_or_ids).flatten
42
any_object_instead_of_id = ids.any? { |id| ActiveRecord::Base === id }
0 commit comments