organizze_permanent_records 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -33,9 +33,14 @@ module OrganizzePermanentRecords
|
|
33
33
|
def deleted
|
34
34
|
where("#{table_name}.deleted_at IS NOT NULL")
|
35
35
|
end
|
36
|
+
|
36
37
|
def not_deleted
|
37
38
|
where("#{table_name}.deleted_at IS NULL")
|
38
39
|
end
|
40
|
+
|
41
|
+
def self.with_deleted
|
42
|
+
unscoped.where('deleted_at IS NOT NULL')
|
43
|
+
end
|
39
44
|
end
|
40
45
|
|
41
46
|
module Rails2
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: organizze_permanent_records
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-10-05 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Never Lose Data. Rather than deleting rows this sets Record#deleted_at
|
15
15
|
and gives you all the scopes you need to work with your data.
|