Class: BusFuel

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/earth/bus/bus_fuel.rb

Instance Method Summary collapse

Instance Method Details

#latest_fuel_year_controlsObject



15
16
17
# File 'lib/earth/bus/bus_fuel.rb', line 15

def latest_fuel_year_controls
  fuel_year_controls.where(:year => fuel_year_controls.maximum('year'))
end