Wiki: history

This commit is contained in:
Valery Sizov 2012-02-19 21:52:05 +02:00
parent b565cd1972
commit 85974948e7
7 changed files with 41 additions and 4 deletions

View file

@ -1,7 +1,8 @@
class Wiki < ActiveRecord::Base
belongs_to :project
belongs_to :user
validates :content, :title, :presence => true
validates :content, :title, :user_id, :presence => true
validates :title, :length => 1..250
before_update :set_slug