Allow per page configuration domains #2122

This commit is contained in:
Martin Lensment 2015-07-30 16:01:20 +03:00
parent 4b9e082712
commit b8710b2411
3 changed files with 8 additions and 1 deletions

View file

@ -26,6 +26,8 @@ class Admin::DomainsController < AdminController
params[:q][:name_matches] = n_cache # we don't want to show wildcards in search form
end
end
@domains = @domains.per(params[:results_per_page]) if params[:results_per_page].to_i > 0
end
def show