lib/stock-gains/portfolio.rb in stock-gains-0.1.7 vs lib/stock-gains/portfolio.rb in stock-gains-0.1.8

- old
+ new

@@ -23,10 +23,10 @@ end puts end def calculate_gains - StockGains::Stock.all.each{ |stock| @total += stock.days_value } + StockGains::Stock.all.collect{ |stock| @total += stock.days_value } @total = @total.round(2).to_f end def print_gains puts "\n" \ No newline at end of file