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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a91a00657c66d7ffbc8049c524f7ad9de229763
4
- data.tar.gz: 637db6b8dba21ad7dfe7362b8924427c4b68cf97
3
+ metadata.gz: 57c69c6d7676bda21b0f8da016bd556f77003894
4
+ data.tar.gz: 5293e8a3b417fecdfe117aefddcd8e2a0d2f4b09
5
5
  SHA512:
6
- metadata.gz: 77c143a2c090bbd824d951902beeb1d6266c58b1065cc8c83565961e50e6134bfc4217e0df333bfac486adf96212464f8d0848e8efcc047a107231a2158a2d16
7
- data.tar.gz: 9fc0a274a379afc8e4e1ca7820e6150079b890a8133dc2aae7b7958fd9f6f6a0cee875ff3e116a9a5934ae42975c41f3635bebc278213d77509ee7de6d2a46eb
6
+ metadata.gz: 8ae49e59c2f487c80243bb42c4d6e33c4f1676ecd0d039ba420c1e1e49e02b83a4c6635515d1ef53dd4ba0c68ebce427b386ce684992d4139ef2e4c638f61dd5
7
+ data.tar.gz: f449a10feae541515688ed6c55446aa815025982f293a2375c44ec74b68a8cfe7928abc1dffee3758a868bca4d6d92eb13632642bb0dc40279d47e5973a7bfb0
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ActsAsParanoid
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_paranoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Scott