Allow searching users by IP subnet
This commit is contained in:
parent
4ea868ace7
commit
e91f4d82ea
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ module Users
|
||||||
|
|
||||||
users = User.all
|
users = User.all
|
||||||
users = users.where(:status => @params[:status]) if @params[:status].present?
|
users = users.where(:status => @params[:status]) if @params[:status].present?
|
||||||
users = users.where(:creation_address => @params[:ip]) if @params[:ip].present?
|
users = users.where("creation_address <<= ?", @params[:ip]) if @params[:ip].present?
|
||||||
|
|
||||||
@users_count = users.limit(501).count
|
@users_count = users.limit(501).count
|
||||||
@users_count = I18n.t("count.at_least_pattern", :count => 500) if @users_count > 500
|
@users_count = I18n.t("count.at_least_pattern", :count => 500) if @users_count > 500
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue