D

Ruby code posted by a
created at 28 Jul 19:27, updated at 29 Jul 13:21

Edit | Back
1
2
3
4
5
class Document < ActiveRecord::Base
  belongs_to :creator, :class_name => 'Editor'
  belongs_to :revisor, :class_name => 'Editor'
  validates_presence_of [:body, :creator_id]
end
182 Bytes in 2 ms with coderay