lib/earth/automobile/automobile_make/data_miner.rb in earth-0.12.3 vs lib/earth/automobile/automobile_make/data_miner.rb in earth-0.12.4

- old
+ new

@@ -15,10 +15,10 @@ :cols => { :make_name => :name } ) end process "Derive fuel efficiency from AutomobileMakeYear" do - find_each do |make| + safe_find_each do |make| make.update_attributes!( :fuel_efficiency => make.make_years.weighted_average(:fuel_efficiency), :fuel_efficiency_units => make.make_years.first.fuel_efficiency_units ) end