app/controllers/parties_controller.rb in backlog-0.14.2 vs app/controllers/parties_controller.rb in backlog-0.14.3

- old
+ new

@@ -16,10 +16,10 @@ private def send_burn_down_chart(size) party = Party.find(params[:id]) - if period = party.periods.select{|p| p.active?}.first || party.periods.last + if period = party.periods.to_a.find{|p| p.active?} || party.periods.last g = period.burn_down_graph(size) send_data(g, :disposition => 'inline', :type => 'image/png', :filename => "burn_down_chart.png")