Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Attributeモデルにslugを設定。

  • Loading branch information...
commit eb21616afd1e43be570f70695cf981dcd241a6b3 1 parent 5ff8edb
@sakomoko authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  app/models/attribute.rb
View
3  app/models/attribute.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.