Skip to content

Commit 51dbbc8

Browse files
Merge pull request #614 from cedarcode/jt--rate_limit
Add rate limiting to incoming requests
2 parents 97323fd + 0881491 commit 51dbbc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/application_controller.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class ApplicationController < ActionController::Base
22
helper_method :current_student
3+
rate_limit to: 20, within: 10.seconds
34

45
private
56

0 commit comments

Comments
 (0)