mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Rubocop update
This commit is contained in:
parent
736848d70c
commit
f2b1705a1e
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ class Admin::PricelistsController < AdminController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@q = Pricelist.search(params[:q])
|
@q = Pricelist.search(params[:q])
|
||||||
@q.sorts = ['category asc', 'duration asc', 'operation_category asc', 'valid_from desc', 'valid_to asc'] if @q.sorts.empty?
|
@q.sorts = ['category asc', 'duration asc', 'operation_category asc',
|
||||||
|
'valid_from desc', 'valid_to asc'] if @q.sorts.empty?
|
||||||
@pricelists = @q.result.page(params[:page])
|
@pricelists = @q.result.page(params[:page])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue