Mercurial > hg > soundsoftware-site
annotate vendor/plugins/redmine_bibliography/app/models/authorship.rb @ 483:cc267eb99115 feature_36
removed unnecessary rjs file; extending the User Model to handle Users with no Author.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 07 Jul 2011 18:20:31 +0100 |
parents | dd242ea99fd3 |
children | b24091590b63 |
rev | line source |
---|---|
luis@328 | 1 class Authorship < ActiveRecord::Base |
luis@328 | 2 belongs_to :author |
luis@328 | 3 belongs_to :publication |
luis@393 | 4 |
luis@483 | 5 accepts_nested_attributes_for :author |
luis@483 | 6 accepts_nested_attributes_for :publication |
luis@483 | 7 |
luis@481 | 8 |
luis@481 | 9 # setter and getter for virtual attribute :author search |
luis@481 | 10 def author_search |
luis@481 | 11 end |
luis@481 | 12 |
luis@481 | 13 def author_search=(string) |
luis@481 | 14 end |
luis@481 | 15 |
luis@328 | 16 end |