From 852a00881e0a83e84843072f9f43a8b3f96fe177 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Thu, 21 Nov 2013 19:37:30 -0500 Subject: [PATCH] Velocipede changed their wording to CLASS Can't find purpose by name, will have to rely on default ID in case wording is changed. --- app/models/user.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 5c7ed67..cd657a1 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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