[ARVADOS] updated: 60cb933e17126bee490c86e100a28c96323f54f2

git at public.curoverse.com git at public.curoverse.com
Wed Jan 15 12:12:50 EST 2014


Summary of changes:
 .../api/app/controllers/application_controller.rb  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

       via  60cb933e17126bee490c86e100a28c96323f54f2 (commit)
      from  463e996ae5276dc41deca98cb444c802e6f5e251 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 60cb933e17126bee490c86e100a28c96323f54f2
Author: Tom Clegg <tom at curoverse.com>
Date:   Wed Jan 15 09:11:25 2014 -0800

    Fix incorrect find(), should have been find_by_uuid()
    
    refs #1871
    amends 463e996ae5276dc41deca98cb444c802e6f5e251

diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb
index f2d238a..989f9f5 100644
--- a/services/api/app/controllers/application_controller.rb
+++ b/services/api/app/controllers/application_controller.rb
@@ -329,7 +329,7 @@ class ApplicationController < ActionController::Base
     # This is necessary to prevent an ActiveRecord::ReadOnlyRecord
     # error when updating an object which was retrieved using a join.
     if @object.andand.readonly?
-      @object = model_class.find(@objects.first.uuid)
+      @object = model_class.find_by_uuid(@objects.first.uuid)
     end
   end
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list