Browse Source

Needed some to_s

denney-disable-on-select
Jason Denney 12 years ago
parent
commit
4e6abf4a52
  1. 4
      app/models/bike_condition.rb
  2. 4
      app/models/bike_status.rb
  3. 4
      app/models/bike_style.rb

4
app/models/bike_condition.rb

@ -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

4
app/models/bike_status.rb

@ -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

4
app/models/bike_style.rb

@ -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…
Cancel
Save