Mercurial > hg > soundsoftware-site
view vendor/plugins/redmine_bibliography/app/models/author.rb @ 1114:212b72b966ff bibplugin_bibtex
development commit - changing association validations. not working correctly
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 14 Dec 2012 19:50:00 +0000 |
parents | a0c9cc95bcf3 |
children |
line wrap: on
line source
class Author < ActiveRecord::Base unloadable has_many :authorships, :dependent => :destroy has_many :publications, :through => :authorships # validates_length_of :authorships, :minimum => 1, :message => "need to have at least 1 associated authorship - author not saved." end