Wiki: history
This commit is contained in:
parent
b565cd1972
commit
85974948e7
7 changed files with 41 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue