geothird_friendly_id 4.0.9.1 → 4.0.9.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 878d3503934309a5f33b75fbfcbcd0f39f2c7308
4
- data.tar.gz: f76a3f30b63f8531225b6f96afa24b5cded31d07
3
+ metadata.gz: 9ae114dd7e2bd75c73339f947fe669bf714e3bca
4
+ data.tar.gz: f4d3050de726f941d29e0d488d7e69151ff047e8
5
5
  SHA512:
6
- metadata.gz: 40e592b60bae27aea119208769c343bb191bab7cbc91fdbca5894f9dcdc7ec02ee6d6510a61334e749fed8d1272fd8a0561b3d459d6610780f03ec700f254f84
7
- data.tar.gz: baafd016378fc23b5cef06267ad77475d87ca9720dd01268b51ba9b7e7e8d1fd0e7e225161498b4bb1e9fc5fdee7f97c396c6b74fabf71f297a450215a213841
6
+ metadata.gz: ce5e37d7a05901ae7b348154d661194472df459bc870a0fd2f575e34560731ae494f942881fac16d1ed8e49b37ce717254229f2e6c7e069bc91322fdb6753f1e
7
+ data.tar.gz: f6f358264b853a067923d42cbc51e06fefa696780d4601eb5e5dff82631a05646fbd955816dc9f204c317cbe17af0530d8781ad86533501c5925216f6a1618cd
@@ -58,7 +58,7 @@ module FriendlyId
58
58
  # Awful hack for SQLite3, which does not pick up '\' as the escape character without this.
59
59
  base << "ESCAPE '\\'" if sluggable.connection.adapter_name =~ /sqlite/i
60
60
  scope = sluggable_class.unscoped.where(base, normalized, wildcard)
61
- scope = scope.where("#{pkey} <> ?", value) unless sluggable.new_record?
61
+ scope = scope.with_deleted.where("#{pkey} <> ?", value) unless sluggable.new_record?
62
62
  scope = scope.order("LENGTH(#{column}) DESC, #{column} DESC")
63
63
  end
64
64
 
data/lib/friendly_id.rb CHANGED
@@ -45,7 +45,7 @@ with numeric ids:
45
45
  module FriendlyId
46
46
 
47
47
  # The current version.
48
- VERSION = "4.0.9.1"
48
+ VERSION = "4.0.9.2"
49
49
 
50
50
  @mutex = Mutex.new
51
51
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geothird_friendly_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.9.1
4
+ version: 4.0.9.2
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-04-04 00:00:00.000000000 Z
12
+ date: 2013-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties