projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
closes #4592
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
application_controller.rb
diff --git
a/apps/workbench/app/controllers/application_controller.rb
b/apps/workbench/app/controllers/application_controller.rb
index 88ea4b0a6141b484a7f4a60404f17fa54b1cf979..3270cfb376a1f30be9c214e42fe283a5a81cdc9b 100644
(file)
--- a/
apps/workbench/app/controllers/application_controller.rb
+++ b/
apps/workbench/app/controllers/application_controller.rb
@@
-164,6
+164,7
@@
class ApplicationController < ActionController::Base
def find_objects_for_index
@objects ||= model_class
@objects = @objects.filter(@filters).limit(@limit).offset(@offset)
def find_objects_for_index
@objects ||= model_class
@objects = @objects.filter(@filters).limit(@limit).offset(@offset)
+ @objects.fetch_multiple_pages(false)
end
def render_index
end
def render_index
@@
-172,9
+173,9
@@
class ApplicationController < ActionController::Base
if params[:partial]
@next_page_href = next_page_href(partial: params[:partial], filters: @filters.to_json)
render json: {
if params[:partial]
@next_page_href = next_page_href(partial: params[:partial], filters: @filters.to_json)
render json: {
- content: render_to_string(partial: "show_#{params[:partial]}",
formats: [:html]),
- next_page_href: @next_page_href
-
+ content: render_to_string(partial: "show_#{params[:partial]}",
+ formats: [:html]),
+ next_page_href: @next_page_href
}
else
render json: @objects
}
else
render json: @objects
@@
-268,7
+269,6
@@
class ApplicationController < ActionController::Base
if params[:partial]
f.json {
find_objects_for_index if !@objects
if params[:partial]
f.json {
find_objects_for_index if !@objects
- @objects.fetch_multiple_pages(false)
render json: {
content: render_to_string(partial: "choose_rows.html",
formats: [:html]),
render json: {
content: render_to_string(partial: "choose_rows.html",
formats: [:html]),