aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-02-05 13:50:45 +0000
committerRobin Houston <robin.houston@gmail.com>2012-02-05 13:50:45 +0000
commit11782f45795dc8f57e5ca9666e8325976541120e (patch)
treeef17e09de87497e217b2aa3f9d89c53d1fdb81c6 /app/controllers/request_controller.rb
parentd64f9e16f43c3652ec281be3d2d99bb3508b6044 (diff)
Change wording of rate-limited page
Include information about what the per-day limit is, and when the user can next make a request. Fixes #412.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 2295d6718..313a57d7d 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -220,6 +220,8 @@ class RequestController < ApplicationController
render :template => 'user/banned'
return
end
+ # User did exceed limit
+ @next_request_permitted_at = authenticated_user.next_request_permitted_at
end
# First time we get to the page, just display it