Sha256: b3d9d96e836adc12bdce33013bf394e5f94e897746ca54fe9ecfd5f3963cb01a
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
class FlightDistanceClass < ActiveRecord::Base set_primary_key :name def self.find_by_distance(distance) first :conditions => arel_table[:min_distance].lteq(distance).and(arel_table[:max_distance].gt(distance)) end col :name col :distance, :type => :float col :distance_units col :min_distance, :type => :float col :min_distance_units col :max_distance, :type => :float col :max_distance_units col :passengers, :type => :float end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
earth-0.7.0 | lib/earth/air/flight_distance_class.rb |