class Item < ActiveRecord::Base
	acts_as_taggable
	belongs_to :category
	belongs_to :user
	has_many :comments
	validates :title, :content, :summary, :category, :user, presence: true
	default_scope { order("created_at DESC") }
	paginates_per 10
end
