soft_deletion 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- soft_deletion (0.4.3)
4
+ soft_deletion (0.4.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -33,10 +33,10 @@ module SoftDeletion
33
33
 
34
34
  def nullify_dependencies
35
35
  dependencies.each do |dependency|
36
- foreign_key = if association.respond_to?(:foreign_key) # rails 3+
36
+ foreign_key = if association.respond_to?(:foreign_key) # rails 3.1+
37
37
  association.foreign_key
38
- else # rails 2
39
- association.options[:foreign_key] || "#{record.class.name.underscore}_id"
38
+ else
39
+ association.primary_key_name
40
40
  end
41
41
  dependency.update_attribute(foreign_key, nil)
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module SoftDeletion
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  end
data.tar.gz.sig CHANGED
Binary file
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.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  segments:
83
83
  - 0
84
- hash: 673516693853522626
84
+ hash: 4454320574336980361
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: 673516693853522626
93
+ hash: 4454320574336980361
94
94
  requirements: []
95
95
  rubyforge_project:
96
96
  rubygems_version: 1.8.25
metadata.gz.sig CHANGED
Binary file