Class: Result

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::MassAssignmentSecurity, Model::MongoDb::Commentable, Model::MongoDb::Customizable, Mongoid::Document, Mongoid::Timestamps
Defined in:
app/models/result.rb

Instance Method Summary collapse

Methods included from Model::MongoDb::Commentable

#comments

Instance Method Details

#offerorObject

belongs_to (SQL)



37
# File 'app/models/result.rb', line 37

def offeror; offeror_id ? User.find(offeror_id) : nil; end

#offeror=(value) ⇒ Object



38
# File 'app/models/result.rb', line 38

def offeror=(value); self.offeror_id = value.id; end

#userObject



40
# File 'app/models/result.rb', line 40

def user; user_id ? User.find(user_id) : nil; end

#user=(value) ⇒ Object



41
# File 'app/models/result.rb', line 41

def user=(value); self.user_id = value.id; end