projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e263a53
)
fix unsupported where() style in find_object_by_uuid
author
Tom Clegg <tom@clinicalfuture.com>
Thu, 31 Jan 2013 17:09:02 +0000
(09:09 -0800)
committer
Tom Clegg <tom@clinicalfuture.com>
Thu, 31 Jan 2013 17:09:02 +0000
(09:09 -0800)
app/controllers/application_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/application_controller.rb
b/app/controllers/application_controller.rb
index 49dbc241ad5d72fd15d9c015b4887eff39ecd16d..1c7f9fc94776da06d583eb8f0de17d2b8dfd9abd 100644
(file)
--- a/
app/controllers/application_controller.rb
+++ b/
app/controllers/application_controller.rb
@@
-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