From ab2c17236a3f04a5b9cf5f11a119480ccd8ada22 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Mon, 10 Jan 2022 09:52:02 +0800 Subject: [PATCH] DEV: Follow Discourse's convention when monkey patching. Having to load `ip_addr` is confusing especially when that file exists to monkey patch Ruby's `IpAddr` class. Moving it to our freedom patches folder which is automatically loaded on initialization. --- app/models/screened_ip_address.rb | 1 - lib/{ => freedom_patches}/ip_addr.rb | 0 2 files changed, 1 deletion(-) rename lib/{ => freedom_patches}/ip_addr.rb (100%) diff --git a/app/models/screened_ip_address.rb b/app/models/screened_ip_address.rb index cc81c462f00..d371864eda3 100644 --- a/app/models/screened_ip_address.rb +++ b/app/models/screened_ip_address.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require 'screening_model' -require 'ip_addr' # A ScreenedIpAddress record represents an IP address or subnet that is being watched, # and possibly blocked from creating accounts. diff --git a/lib/ip_addr.rb b/lib/freedom_patches/ip_addr.rb similarity index 100% rename from lib/ip_addr.rb rename to lib/freedom_patches/ip_addr.rb