Class: Result
- Inherits:
-
Object
- Object
- Result
- Includes:
- ActiveModel::MassAssignmentSecurity, Model::MongoDb::Commentable, Model::MongoDb::Customizable, Mongoid::Document, Mongoid::Timestamps
- Defined in:
- app/models/result.rb
Instance Method Summary collapse
-
#offeror ⇒ Object
belongs_to (SQL).
- #offeror=(value) ⇒ Object
- #user ⇒ Object
- #user=(value) ⇒ Object
Methods included from Model::MongoDb::Commentable
Instance Method Details
#offeror ⇒ Object
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 |
#user ⇒ Object
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 |