soft_deletion 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- soft_deletion (0.5.2)
4
+ soft_deletion (0.5.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -24,15 +24,7 @@ module SoftDeletion
24
24
  if options[:default_scope]
25
25
  conditions = {:deleted_at => nil}
26
26
  if ActiveRecord::VERSION::STRING < "3.1"
27
- # Avoids a bad SQL request with versions of code without the column deleted_at
28
- # (for example a migration prior to the migration that adds deleted_at)
29
- if !table_exists?
30
- warn "#{table_name} table missing, disabling soft_deletion default scope"
31
- elsif !column_names.include?("deleted_at")
32
- warn "#{table_name} does not have deleted_at column, disabling soft_deletion default scope"
33
- else
34
- default_scope :conditions => conditions
35
- end
27
+ default_scope :conditions => conditions
36
28
  else
37
29
  default_scope { where(conditions) }
38
30
  end
@@ -1,3 +1,3 @@
1
1
  module SoftDeletion
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soft_deletion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
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: 2013-11-04 00:00:00.000000000 Z
12
+ date: 2013-11-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: michael@grosser.it
@@ -54,7 +54,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  segments:
56
56
  - 0
57
- hash: -1879420123943437209
57
+ hash: -4553926914624727547
58
58
  required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  none: false
60
60
  requirements:
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  segments:
65
65
  - 0
66
- hash: -1879420123943437209
66
+ hash: -4553926914624727547
67
67
  requirements: []
68
68
  rubyforge_project:
69
69
  rubygems_version: 1.8.25