app/models/c80_estate/area.rb in c80_estate-0.1.0.31 vs app/models/c80_estate/area.rb in c80_estate-0.1.0.32
- old
+ new
@@ -311,10 +311,11 @@
def power_price_value
price_value * 1.0 * square_value
end
def main_image_url
- url = 'no_thumb.png'
+ url = "no_thumb_#{atype.id}.jpg"
+
if aphotos.count > 0
url = aphotos.first.image.thumb512
end
url
end
\ No newline at end of file