acts_as_paranoid 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_paranoid.rb +2 -2
- data/lib/acts_as_paranoid/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c69c6d7676bda21b0f8da016bd556f77003894
|
4
|
+
data.tar.gz: 5293e8a3b417fecdfe117aefddcd8e2a0d2f4b09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ae49e59c2f487c80243bb42c4d6e33c4f1676ecd0d039ba420c1e1e49e02b83a4c6635515d1ef53dd4ba0c68ebce427b386ce684992d4139ef2e4c638f61dd5
|
7
|
+
data.tar.gz: f449a10feae541515688ed6c55446aa815025982f293a2375c44ec74b68a8cfe7928abc1dffee3758a868bca4d6d92eb13632642bb0dc40279d47e5973a7bfb0
|
data/lib/acts_as_paranoid.rb
CHANGED
@@ -38,8 +38,8 @@ module ActsAsParanoid
|
|
38
38
|
deleted_after_time((time - window)).deleted_before_time((time + window))
|
39
39
|
}
|
40
40
|
|
41
|
-
scope :deleted_after_time, lambda { |time| where("#{paranoid_column} > ?", time) }
|
42
|
-
scope :deleted_before_time, lambda { |time| where("#{paranoid_column} < ?", time) }
|
41
|
+
scope :deleted_after_time, lambda { |time| where("#{self.table_name}.#{paranoid_column} > ?", time) }
|
42
|
+
scope :deleted_before_time, lambda { |time| where("#{self.table_name}.#{paranoid_column} < ?", time) }
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|