diff --git a/app/models/department.rb b/app/models/department.rb index 12bbd05..c4bc905 100644 --- a/app/models/department.rb +++ b/app/models/department.rb @@ -3,8 +3,9 @@ class Department include Mongoid::Document include Mongoid::Timestamps + include Slug - field :name, :localize => true + field :name, as: :slug_title, :localize => true field :sort_number, :type => Integer field :should_destroy, :type => Boolean