From 8d9e335dec7988631619ad318e291ecb5dec947f Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 24 Sep 2015 16:06:56 +0800 Subject: [PATCH] update for model --- app/models/department.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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