lib/earth/shipping/shipment_mode.rb in earth-0.11.10 vs lib/earth/shipping/shipment_mode.rb in earth-0.11.11
- old
+ new
@@ -1,7 +1,7 @@
class ShipmentMode < ActiveRecord::Base
- set_primary_key :name
+ self.primary_key = "name"
has_many :carrier_modes, :foreign_key => 'mode_name', :primary_key => 'name'
col :name
col :route_inefficiency_factor, :type => :float
@@ -30,6 +30,6 @@
# raise "Missing transport emission factor units for ShipmentMode #{mode.name}"
# end
# end
# end
-end
\ No newline at end of file
+end