Class: C80Estate::Property
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- C80Estate::Property
- Defined in:
- app/models/c80_estate/property.rb
Instance Method Summary collapse
Instance Method Details
#assigned_person_title ⇒ Object
24 25 26 27 28 29 30 |
# File 'app/models/c80_estate/property.rb', line 24 def assigned_person_title res = "-" if assigned_person.present? res = assigned_person.email end res end |
#logo_path ⇒ Object
32 33 34 35 36 37 38 |
# File 'app/models/c80_estate/property.rb', line 32 def logo_path url = 'property_default_logo.png' if plogos.count > 0 url = plogos.first.image.thumb256 end url end |