Skip to content

Commit

Permalink
noting the ruby 1.9 or rails dependency. sorry bout that
Browse files Browse the repository at this point in the history
  • Loading branch information
kevintom committed Jan 9, 2011
1 parent a9d8ee2 commit fabba9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sequel_sluggable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def to_slug(value)
end

def random_slug
# rails or ruby 1.9 dependency. sorry.
SecureRandom.hex(self.class.sluggable_options[:slug_length])
end

Expand Down

0 comments on commit fabba9c

Please sign in to comment.