mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-04-04 05:33:22 -04:00
12 lines
289 B
Ruby
12 lines
289 B
Ruby
class BikeWheelSize < ActiveRecord::Base
|
|
belongs_to :bike
|
|
|
|
def display_string
|
|
["#{twmm}-#{rdmm}", "#{rdin}x#{twin}", "#{rdfr}x#{twfr}", description].join(" | ")
|
|
end
|
|
|
|
def to_s
|
|
"#{twmm}-#{rdmm} #{rdin}x#{twin} #{rdfr}x#{twfr} '#{description}' #{tire_common_score}"
|
|
end
|
|
end
|