Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Teaks to the documentation.

  • Loading branch information...
commit 4eb2573bd694ee3fefbb960c911dafaa977cf89d 1 parent 0c084fd
@pk authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.rdoc
View
6 README.rdoc
@@ -89,7 +89,7 @@ If you provide _:sluggator_ Proc or Symbol the sluggator will be called:
OR
class MyModel < Sequel::Model
- plugin :sluggable,:source => :name, :sluggator => :my_to_slug
+ plugin :sluggable, :source => :name, :sluggator => :my_to_slug
end
If you don't provide _:sluggator_ sequel_sluggable will try to use
@@ -106,8 +106,8 @@ it will be used:
If you don't define <b>Model#to_slug</b> or *:sluggator* sequel_sluggable
will use it's own default implementation which does following:
-
- model.source_column.chomp.downcase.gsub(/[^a-z0-9]+/,'-')
+
+ 'value_of_the_source_column'.chomp.downcase.gsub(/[^a-z0-9]+/,'-')
= Note on Patches/Pull Requests
Please sign in to comment.
Something went wrong with that request. Please try again.