fix unsupported where() style in find_object_by_uuid
authorTom Clegg <tom@clinicalfuture.com>
Thu, 31 Jan 2013 17:09:02 +0000 (09:09 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Thu, 31 Jan 2013 17:09:02 +0000 (09:09 -0800)
app/controllers/application_controller.rb

index 49dbc241ad5d72fd15d9c015b4887eff39ecd16d..1c7f9fc94776da06d583eb8f0de17d2b8dfd9abd 100644 (file)
@@ -73,7 +73,7 @@ class ApplicationController < ActionController::Base
     if params[:id] and params[:id].match /\D/
       params[:uuid] = params.delete :id
     end
-    @object = model_class.where('uuid=?', params[:uuid]).first
+    @object = model_class.where(uuid: params[:uuid]).first
   end
 
   def thread_with_api_token