Class: AutomobileActivityYearTypeFuel
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- AutomobileActivityYearTypeFuel
- Defined in:
- lib/earth/automobile/automobile_activity_year_type_fuel.rb
Class Method Summary collapse
-
.latest ⇒ Object
Used by AutomobileFuel to get records from latest activity year.
Class Method Details
.latest ⇒ Object
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 |