Mercurial > hg > soundsoftware-site
view app/models/ssamr_user_detail.rb @ 519:3be6bc3c2a17 feature_36
Correctly searches and sends the parameters for both users and authors.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 15 Jul 2011 17:21:05 +0100 |
parents | 9a5a265e77f0 |
children | 8a26a0e291cf |
line wrap: on
line source
class SsamrUserDetail < ActiveRecord::Base belongs_to :user validates_presence_of :description validate :check_institution def check_institution() errors.add(:institution_id, "Please insert an institution") if institution_id.blank? and other_institution.blank? end end