mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 22:24:47 +02:00
Fix Rubocop issues after Ruby upgrade
This commit is contained in:
parent
3c1125879c
commit
15a651e51b
18 changed files with 25 additions and 26 deletions
|
@ -3,13 +3,11 @@ module Admin
|
|||
load_and_authorize_resource
|
||||
|
||||
def index
|
||||
|
||||
params[:q] ||= {}
|
||||
domains = BlockedDomain.all.order(:name)
|
||||
@q = domains.search(params[:q])
|
||||
@domains = @q.result.page(params[:page])
|
||||
@domains = @domains.per(params[:results_per_page]) if params[:results_per_page].to_i > 0
|
||||
|
||||
@domains = @domains.per(params[:results_per_page]) if params[:results_per_page].to_i.positive?
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue