adds more user class support

This commit is contained in:
Toks
2013-03-31 22:02:53 -04:00
parent 08b41bfa95
commit af44e99130
2 changed files with 2 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ class WikiPage < ActiveRecord::Base
before_validation :initialize_updater
after_save :create_version
belongs_to :creator, :class_name => "User"
belongs_to :updater, :class_name => "User"
validates_uniqueness_of :title, :case_sensitive => false
validates_presence_of :title
validate :validate_locker_is_janitor