From 4e6abf4a524ef1269c6ccd28c7111fe90e1f61f6 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sun, 9 Dec 2012 14:27:07 -0500 Subject: [PATCH] Needed some to_s --- app/models/bike_condition.rb | 4 ++++ app/models/bike_status.rb | 4 ++++ app/models/bike_style.rb | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/app/models/bike_condition.rb b/app/models/bike_condition.rb index 9fd27ef..0e197f1 100644 --- a/app/models/bike_condition.rb +++ b/app/models/bike_condition.rb @@ -2,4 +2,8 @@ class BikeCondition < ActiveRecord::Base attr_accessible :condition belongs_to :bike + + def to_s + self.condition + end end diff --git a/app/models/bike_status.rb b/app/models/bike_status.rb index 58feee9..8ec30aa 100644 --- a/app/models/bike_status.rb +++ b/app/models/bike_status.rb @@ -2,4 +2,8 @@ class BikeStatus < ActiveRecord::Base attr_accessible :status belongs_to :bike + + def to_s + self.status + end end diff --git a/app/models/bike_style.rb b/app/models/bike_style.rb index 9009df8..74593cc 100644 --- a/app/models/bike_style.rb +++ b/app/models/bike_style.rb @@ -2,4 +2,8 @@ class BikeStyle < ActiveRecord::Base attr_accessible :style belongs_to :bike + + def to_s + self.style + end end