projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
6074: Clear any existing ActiveRecord select() before adding our own,
[arvados.git]
/
services
/
api
/
app
/
controllers
/
application_controller.rb
diff --git
a/services/api/app/controllers/application_controller.rb
b/services/api/app/controllers/application_controller.rb
index e6a02b1e12c67a795cbaa877cc997d7e406f1795..3a3f6d334589058b3e3af1c0dc13c97cfbf4bff3 100644
(file)
--- a/
services/api/app/controllers/application_controller.rb
+++ b/
services/api/app/controllers/application_controller.rb
@@
-301,6
+301,7
@@
class ApplicationController < ActionController::Base
return if limit_columns.empty?
model_class.transaction do
limit_query = @objects.
+ except(:select).
select("(%s) as read_length" %
limit_columns.map { |s| "octet_length(#{s})" }.join(" + "))
new_limit = 0