mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 16:53:23 -05:00
Needed some to_s
This commit is contained in:
parent
d3c466761e
commit
4e6abf4a52
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user