Compare commits
3 commits
90e06a475f
...
b7268918d0
Author | SHA1 | Date | |
---|---|---|---|
b7268918d0 | |||
6c0c207d1f | |||
|
2d0c163f13 |
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class DocumentsController < ApplicationController
|
|||
else
|
||||
'data IS NULL DESC, name'
|
||||
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)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue