Sha256: b7aa331657d0d043b0fc92073b65864c4de1d9966b946444ad7260eaad596fa0
Contents?: true
Size: 522 Bytes
Versions: 13
Compression:
Stored size: 522 Bytes
Contents
class BusFuel < ActiveRecord::Base set_primary_key :name belongs_to :fuel, :foreign_key => 'fuel_name' has_many :fuel_year_controls, :class_name => 'BusFuelYearControl', :foreign_key => 'bus_fuel_name' data_miner do tap "Brighter Planet's sanitized bus fuel data", Earth.taps_server process "Pull dependencies" do run_data_miner_on_belongs_to_associations end end def latest_fuel_year_controls fuel_year_controls.where(:year => fuel_year_controls.maximum('year')) end end
Version data entries
13 entries across 13 versions & 1 rubygems