app/models/c80_estate/property.rb in c80_estate-0.1.0.21 vs app/models/c80_estate/property.rb in c80_estate-0.1.0.22
- old
+ new
@@ -61,10 +61,13 @@
end
url
end
def last_updater
- pstats.last.sevent.auser.email
+ res = '-'
+ if pstats.count > 0
+ res = pstats.last.sevent.auser.email
+ end
end
def square_value
sum = 0
areas.all.each do |area|
\ No newline at end of file