Permalink
Browse files

Attributeモデルにslugを設定。

  • Loading branch information...
1 parent 5ff8edb commit eb21616afd1e43be570f70695cf981dcd241a6b3 @sakomoko committed Jan 3, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/models/attribute.rb
View
@@ -1,7 +1,8 @@
class Attribute
include Mongoid::Document
+ include Mongoid::Slug
field :name, :type => String
field :key, :type => String
- has_many :item_types
+ slug :key
end

0 comments on commit eb21616

Please sign in to comment.