luis@328: class Authorship < ActiveRecord::Base luis@328: belongs_to :author luis@328: belongs_to :publication luis@393: luis@483: accepts_nested_attributes_for :author luis@483: accepts_nested_attributes_for :publication luis@483: luis@481: luis@481: # setter and getter for virtual attribute :author search luis@481: def author_search luis@481: end luis@481: luis@481: def author_search=(string) luis@481: end luis@481: luis@328: end