diff options
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 76f513fdc..595d963a8 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -38,6 +38,9 @@ class ApplicationController < ActionController::Base @request_count = Request.where(:recipient_id => current_user.person.id).count if current_user end + def ensure_page + params[:page] = params[:page] ? params[:page].to_i : 1 + end def set_invites if user_signed_in? @invites = current_user.invites |