9 lines
187 B
Ruby
9 lines
187 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Rack::Attack
|
|
class Request < ::Rack::Request
|
|
def remote_ip
|
|
@remote_ip ||= (env['action_dispatch.remote_ip'] || ip).to_s
|
|
end
|
|
end
|
|
end
|