Fix Rubocop issues after Ruby upgrade

This commit is contained in:
Maciej Szlosarczyk 2018-04-27 15:01:39 +03:00
parent 3c1125879c
commit 15a651e51b
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
18 changed files with 25 additions and 26 deletions

View file

@ -32,7 +32,7 @@ module Admin
end
end
@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
# rubocop: enable Metrics/PerceivedComplexity