X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a6439c7ddc3407193889386051f06df2a1e74ea9..dca6cfe9750d8d1be4f3b63895b8cb73cc6c4cfe:/apps/workbench/app/controllers/users_controller.rb diff --git a/apps/workbench/app/controllers/users_controller.rb b/apps/workbench/app/controllers/users_controller.rb index 863876137f..5cfa48710f 100644 --- a/apps/workbench/app/controllers/users_controller.rb +++ b/apps/workbench/app/controllers/users_controller.rb @@ -74,7 +74,7 @@ class UsersController < ApplicationController storage_log = Log. filter([[:object_uuid, '=', u.uuid], [:event_type, '=', 'user-storage-report']]). - order(:created_at => :desc). + order(['created_at desc']). limit(1) storage_log.each do |log_entry| # We expect this block to only execute once since we specified limit(1) @@ -122,12 +122,12 @@ class UsersController < ApplicationController @my_jobs = Job. limit(10). - order('created_at desc'). + order(['created_at desc']). where(created_by: current_user.uuid) @my_collections = Collection. limit(10). - order('created_at desc'). + order(['created_at desc']). where(created_by: current_user.uuid) collection_uuids = @my_collections.collect &:uuid @@ -151,7 +151,7 @@ class UsersController < ApplicationController @my_pipelines = PipelineInstance. limit(10). - order('created_at desc'). + order(['created_at desc']). where(created_by: current_user.uuid) respond_to do |f|