2012-12-03 04:10:45 +00:00
|
|
|
class CoAuthorRelation
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
|
|
|
|
field :relation, localize: true
|
|
|
|
|
|
|
|
has_and_belongs_to_many :co_authors
|
2012-12-03 06:55:57 +00:00
|
|
|
|
|
|
|
validates :relation, presence: true
|
2012-12-03 04:10:45 +00:00
|
|
|
end
|