hakanensari/mongoid-slug — Issue #42: slug for fields that are localized
Author: cs3b
Created: 2011-11-19 14:35:46+00:00
State: open

so far the only well working solutions is to make slug permanent and set value by passing block, i.e.:

field :name, :type => String, :localize => true
slug :name, :permanent => true do |category|
category.name
end

in future would be nice if slug would be also localize, it's require to think about few cases like:
* overwriting find_by_slug ( so it could find object by any translated slug )
* fetching value for slug (it's stored as hash in db)