Class: BusFuel
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BusFuel
- Defined in:
- lib/earth/bus/bus_fuel.rb
Instance Method Summary collapse
Instance Method Details
#latest_fuel_year_controls ⇒ Object
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 |