Sha256: b2fa02d80b63f3dd39c1da52c2eb13c279616481e8dd8abc5de3693448d611c1
Contents?: true
Size: 277 Bytes
Versions: 16
Compression:
Stored size: 277 Bytes
Contents
require './helper' class SlugizerEx include MongoMapper::Document include MongoMapperExt::Slugizer slug_key :title, :unique => true key :title end u = SlugizerEx.create(:title => "The title of the blogpost!!!") puts u.slug puts SlugizerEx.by_slug(u.slug).inspect
Version data entries
16 entries across 16 versions & 1 rubygems