Sha256: bbc909f80ce3876026d54d57e6ac350e4b5adcfaadc54953e77312f8e0a7dabc

Contents?: true

Size: 192 Bytes

Versions: 10

Compression:

Stored size: 192 Bytes

Contents

class FuelPrice < ActiveRecord::Base
  self.primary_key = "name"
  
  belongs_to :fuel_type, :foreign_key => 'name' # weird
  
  col :name
  col :price, :type => :float
  col :price_units
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
earth-0.11.20 lib/earth/fuel/fuel_price.rb
earth-0.11.19 lib/earth/fuel/fuel_price.rb
earth-0.11.18 lib/earth/fuel/fuel_price.rb
earth-0.11.17 lib/earth/fuel/fuel_price.rb
earth-0.11.16 lib/earth/fuel/fuel_price.rb
earth-0.11.15 lib/earth/fuel/fuel_price.rb
earth-0.11.14 lib/earth/fuel/fuel_price.rb
earth-0.11.13 lib/earth/fuel/fuel_price.rb
earth-0.11.12 lib/earth/fuel/fuel_price.rb
earth-0.11.11 lib/earth/fuel/fuel_price.rb