Removed some Rack configs and moved RackAttack rate limits, headers

• Removed:
- some Rack configs and moved RackAttack rate limits, headers
This commit is contained in:
mgabdev
2021-01-14 13:37:38 -05:00
parent feea5a65bc
commit 7c6ef8bb9d
5 changed files with 0 additions and 138 deletions

View File

@@ -8,8 +8,6 @@ class Api::BaseController < ApplicationController
MAX_LIMIT_PARAM = 25
MIN_UNAUTHENTICATED_PAGES = 1
include RateLimitHeaders
skip_before_action :store_current_location
skip_before_action :check_user_permissions

View File

@@ -2,8 +2,6 @@
class EmptyController < ActionController::Base
include RateLimitHeaders
protect_from_forgery with: :null_session
rescue_from ActiveRecord::RecordInvalid, GabSocial::ValidationError do |e|