mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Needed some to_s
This commit is contained in:
@@ -2,4 +2,8 @@ class BikeCondition < ActiveRecord::Base
|
|||||||
attr_accessible :condition
|
attr_accessible :condition
|
||||||
|
|
||||||
belongs_to :bike
|
belongs_to :bike
|
||||||
|
|
||||||
|
def to_s
|
||||||
|
self.condition
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,4 +2,8 @@ class BikeStatus < ActiveRecord::Base
|
|||||||
attr_accessible :status
|
attr_accessible :status
|
||||||
|
|
||||||
belongs_to :bike
|
belongs_to :bike
|
||||||
|
|
||||||
|
def to_s
|
||||||
|
self.status
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,4 +2,8 @@ class BikeStyle < ActiveRecord::Base
|
|||||||
attr_accessible :style
|
attr_accessible :style
|
||||||
|
|
||||||
belongs_to :bike
|
belongs_to :bike
|
||||||
|
|
||||||
|
def to_s
|
||||||
|
self.style
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user