inferred_slug 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module InferredSlug
6
6
  def find_by_slug(*args)
7
7
  record = find(*args)
8
8
  if record and record.respond_to?(:slug)
9
- return nil unless record.slug == args.first
9
+ return nil unless record.slug.to_s == args.first.to_s
10
10
  end
11
11
  record
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module InferredSlug
2
- VERSION = '1.0.1'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inferred_slug
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: