app/models/c80_estate/area.rb in c80_estate-0.1.0.16 vs app/models/c80_estate/area.rb in c80_estate-0.1.0.17
- old
+ new
@@ -41,10 +41,10 @@
def self.free_areas_sq
sum = 0
self.free_areas.each do |area|
# area_prop_square = area.item_props.where(:prop_name_id => 9)
area_prop_square = area.square_value
- sum += area_prop_square.first.value.to_i
+ sum += area_prop_square#.first.value.to_i
end
sum
end
def self.busy_areas
\ No newline at end of file