Sha256: 64fdf8e2b3671db0bd7329a73b837151af2eee7185675cfbf9245c9620a5c42a
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 Bytes
Contents
require ::File.join(Earth::VENDOR_DIR, 'geokit-rails', 'lib', 'geokit-rails') require 'earth/locality' class Airport < ActiveRecord::Base self.primary_key = "iata_code" belongs_to :country, :foreign_key => 'country_iso_3166_code', :primary_key => 'iso_3166_code' acts_as_mappable :default_units => :nms, :lat_column_name => :latitude, :lng_column_name => :longitude col :iata_code col :name col :city col :country_name col :country_iso_3166_code col :latitude, :type => :float col :longitude, :type => :float warn_unless_size 5149 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
earth-0.12.3 | lib/earth/air/airport.rb |
earth-0.12.2 | lib/earth/air/airport.rb |
earth-0.12.1 | lib/earth/air/airport.rb |
earth-0.12.0 | lib/earth/air/airport.rb |