Class: AutomobileActivityYearTypeFuel

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/earth/automobile/automobile_activity_year_type_fuel.rb

Class Method Summary collapse

Class Method Details

.latestObject

Used by AutomobileFuel to get records from latest activity year



5
6
7
# File 'lib/earth/automobile/automobile_activity_year_type_fuel.rb', line 5

def self.latest
  where(:activity_year => maximum(:activity_year))
end