about summary refs log tree commit diff
path: root/config/application.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-19 14:57:30 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-19 14:57:30 +0100
commite2b846f630cae00096a42dffeff759d0ef8e1c3e (patch)
tree52ed093ba2fa1fe1360efd94f60d3b4c29c8d9fc /config/application.rb
parent5d72b922715e04f620026598624f6898e0f267c3 (diff)
Adding letter opener for development and Rack::Attack for future rate limiting implementations
Diffstat (limited to 'config/application.rb')
-rw-r--r--config/application.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb
index e7634854a..9d8d6022d 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -33,5 +33,7 @@ module Mastodon
       Doorkeeper::AuthorizedApplicationsController.layout 'dashboard'
       Doorkeeper::AuthorizationsController.layout         'auth'
     end
+
+    config.middleware.use Rack::Attack
   end
 end