Sha256: 4d46eda1f81e9a4880a2cb8f65c6108f989dfd0b6391c26d2e2287776215eb19

Contents?: true

Size: 688 Bytes

Versions: 11

Compression:

Stored size: 688 Bytes

Contents

class AutomobileMake < ActiveRecord::Base
  set_primary_key :name
  
  has_many :make_years,               :class_name => 'AutomobileMakeYear',             :foreign_key => 'make_name'
  has_many :models,                   :class_name => 'AutomobileMakeModel',            :foreign_key => 'make_name'
  has_many :fleet_years,              :class_name => 'AutomobileMakeFleetYear',        :foreign_key => 'make_name'
  has_many :make_model_year_variants, :class_name => 'AutomobileMakeModelYearVariant', :foreign_key => 'make_name'
  
  scope :major, :conditions => { :major => true }, :order => :name

  data_miner do
    tap "Brighter Planet's make year data", Earth.taps_server
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
earth-0.3.10 lib/earth/automobile/automobile_make.rb
earth-0.3.9 lib/earth/automobile/automobile_make.rb
earth-0.3.8 lib/earth/automobile/automobile_make.rb
earth-0.3.7 lib/earth/automobile/automobile_make.rb
earth-0.3.6 lib/earth/automobile/automobile_make.rb
earth-0.3.5 lib/earth/automobile/automobile_make.rb
earth-0.3.4 lib/earth/automobile/automobile_make.rb
earth-0.3.3 lib/earth/automobile/automobile_make.rb
earth-0.3.2 lib/earth/automobile/automobile_make.rb
earth-0.3.1 lib/earth/automobile/automobile_make.rb
earth-0.3.0 lib/earth/automobile/automobile_make.rb