RubyGems
npm
Organizations
Log in
Sign up
RubyGems
inferred_slug
Versions diffs
1.0.1 → 1.1.0
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.
Files changed (3)
hide
show
data/lib/inferred_slug/finders.rb
+1
-1
data/lib/inferred_slug/version.rb
+1
-1
metadata
+1
-1
data/lib/inferred_slug/finders.rb
CHANGED
Viewed
@@ -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
data/lib/inferred_slug/version.rb
CHANGED
Viewed
@@ -1,3 +1,3 @@
1
1
module InferredSlug
2
-
VERSION = '1.0
.1
'
2
+
VERSION = '1.
1.
0'
3
3
end
metadata
CHANGED
Viewed
@@ -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: