class Venue include Mongoid::Document extend WulffeldSlug::Slug field :name field :country has_slug :slug_fields, :mongo => true def slug_fields [:name, :country] end end