Skip to content
Browse files

Style.

  • Loading branch information...
1 parent 512712a commit 6b9d20a34820d6dc53d5f7d78455f8d93e95b1c3 @wulffeld committed Mar 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/wulffeld_slug/slug_include.rb
View
2 lib/wulffeld_slug/slug_include.rb
@@ -7,7 +7,7 @@ module SlugInclude
if self.slug_config[:mongo]
field :slug
end
-
+
validates_format_of :slug, :with => /\A[[:alnum:]-]+\Z/, :allow_blank => false
before_validation :on => :create do

0 comments on commit 6b9d20a

Please sign in to comment.
Something went wrong with that request. Please try again.