Sha256: b409fd9877ccce129c16ae98f44acbd2c1648ddf9562d4a04ee42523f3c34029
Contents?: true
Size: 221 Bytes
Versions: 1
Compression:
Stored size: 221 Bytes
Contents
class Category < ActiveRecord::Base has_many :categories, :foreign_key => :parent_id belongs_to :parent, :foreign_key => :parent_id, :class_name => "Category" def to_token {:id => id, :name => name} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
token_field-2.0.0 | spec/dummy/app/models/category.rb |