mil_friendly_id 4.0.9.8 → 4.0.9.9

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: c6e5e405a8f499b763823ebfd2f64d3328b04770
4
- data.tar.gz: f1af5d445ae42d992a9bb329d477affa920eaedb
3
+ metadata.gz: 54a549be419afe56b7d8c56ee914a2d9a5f621f5
4
+ data.tar.gz: 3812ef19637d5eeb46b474aac9b42a18b342dc4f
5
5
  SHA512:
6
- metadata.gz: bafb0972a9545b7d49dd3b20577ef0568b969cf1b3acb886f61bc66e934729bf1e6dcb61bf902fd39903e581f7014dea0696607c822dbb82d738e1d752d8695b
7
- data.tar.gz: fcc3ed19d1a22963c4175b814fa91dad9f5ababe94c7c4c0ffe9f9dcf5f13a92f8bce6e91522f3bf74ec4a36c929c814c1b2c250162bcbf293b6ed9acbf4dbf0
6
+ metadata.gz: d37c48613fc7b59328cc5f9fe065c635630a26f7f8f57e898d8ff80005dcec2dd15fd3c5d6c1d1651472e8832bc5d5040ae18edbf5c9f3cf1fa8a177ab71a855
7
+ data.tar.gz: b9849bf2956ed6945d74b95714c2e20f670a95ac8d2a82ce274fff1d0673bedfd2ae126b89bbf9b21c6d83a2854fe32505cd5c858fc23fdaf149bd19a6b9ddfe
@@ -45,7 +45,7 @@ with numeric ids:
45
45
  module FriendlyId
46
46
 
47
47
  # The current version.
48
- VERSION = "4.0.9.8"
48
+ VERSION = "4.0.9.9"
49
49
 
50
50
  @mutex = Mutex.new
51
51
 
@@ -77,7 +77,7 @@ method.
77
77
  # Allow reversion back to a previously used slug
78
78
  relation = slugs.where(:slug => friendly_id)
79
79
  result = relation.select("id").lock(true).all
80
- relation.delete_all unless result.empty?
80
+ relation.with_deleted.delete_all! unless result.empty?
81
81
  slugs.create! do |record|
82
82
  record.slug = friendly_id
83
83
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mil_friendly_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.9.8
4
+ version: 4.0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Norman Clarke
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-18 00:00:00.000000000 Z
12
+ date: 2013-08-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: acts_as_paranoid