]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/users_controller.rb
Add framework for parameter validation using rails_param gem
[rails.git] / app / controllers / users_controller.rb
index b9f1af807f7e09ede8fc1eeea3865cf8736a6f52..c55a177b48bdb0529f08c4d174da56d64ca5ce81 100644 (file)
@@ -36,6 +36,7 @@ class UsersController < ApplicationController
       users = users.where(:status => @params[:status]) if @params[:status]
       users = users.where(:creation_ip => @params[:ip]) if @params[:ip]
 
+      @users_count = users.count
       @users, @newer_users_id, @older_users_id = get_page_items(users, :limit => 50)
     end
   end