Compare commits
4 commits
b7268918d0
...
90e06a475f
Author | SHA1 | Date | |
---|---|---|---|
90e06a475f | |||
f29ab603b6 | |||
|
93143c28f2 | ||
|
6abf998b56 |
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class DocumentsController < ApplicationController
|
||||||
else
|
else
|
||||||
'data IS NULL DESC, name'
|
'data IS NULL DESC, name'
|
||||||
end
|
end
|
||||||
|
sort = Arel.sql(sort) # this is okay as we don't use user params directly
|
||||||
@documents = Document.where(parent: @document).page(params[:page]).per(@per_page).order(sort)
|
@documents = Document.where(parent: @document).page(params[:page]).per(@per_page).order(sort)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue