Browse Source

Velocipede changed their wording to CLASS

Can't find purpose by name, will have to rely on default ID in case wording is changed.
topic-sass
Jason Denney 11 years ago
parent
commit
852a00881e
  1. 3
      app/models/user.rb

3
app/models/user.rb

@ -47,7 +47,8 @@ class User < ActiveRecord::Base
### TODO methods below probably belong somewhere else ### TODO methods below probably belong somewhere else
def completed_build_bikes def completed_build_bikes
purpose_id = BikePurpose.find_by_purpose("BUILDBIKE").id #default BUILDBIKE/CLASS ID is 5
purpose_id = 5
Bike.find_by_sql(" Bike.find_by_sql("
SELECT * SELECT *
FROM bikes FROM bikes

Loading…
Cancel
Save