1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 08:43:23 -05:00

Velocipede changed their wording to CLASS

Can't find purpose by name, will have to rely on default ID in case wording is changed.
This commit is contained in:
Jason Denney 2013-11-21 19:37:30 -05:00
parent 8cc72c9f48
commit 852a00881e

View File

@ -47,7 +47,8 @@ class User < ActiveRecord::Base
### TODO methods below probably belong somewhere else
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("
SELECT *
FROM bikes