Permalink
Browse files

whitespace

  • Loading branch information...
Hakan Ensari
Hakan Ensari committed Sep 6, 2011
1 parent afbbd0a commit a1b2331d24b7a2ad49971eaf1c362ded68c238a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongoid/slug.rb
View
@@ -123,7 +123,7 @@ def find_unique_slug
# If slug_name field was indexed, MongoDB will utilize that index to
# match /^.../ pattern
pattern = /^#{Regexp.escape(slug)}(?:-(\d+))?$/
-
+
if slug_scope && self.class.reflect_on_association(slug_scope).nil?
# scope is not an association, so it's scoped to a local field (e.g.
# an association id in a denormalized db design)

0 comments on commit a1b2331

Please sign in to comment.