codeclimate fixes

This commit is contained in:
dinsmol 2021-07-30 15:20:58 +03:00
parent 0c2dc9f957
commit ec1a48743c
11 changed files with 14 additions and 17 deletions

View file

@ -12,7 +12,7 @@ module Admin
@repp_logs = @repp_logs.where("extract(epoch from created_at) <= extract(epoch from ?::timestamp)", Time.parse(params[:q][:created_at_lteq])) if params[:q][:created_at_lteq].present?
@repp_logs = @repp_logs.page(params[:page])
@count = @q.result.count
@repp_logs = @repp_logs.per(params[:results_per_page]) if params[:results_per_page].to_i.positive?
@repp_logs = @repp_logs.per(params[:results_per_page]) if paginate?
end
def show