A platform for community discussion. Free, open, simple.
DEV: Move AVATAR_DIR constant inside class scope (#38443)
Isaac Janzen918717b2505f
diff --git a/script/import_scripts/xenforo.rb b/script/import_scripts/xenforo.rbindex 5f6541be985..43cc8f8b175 100755--- a/script/import_scripts/xenforo.rb+++ b/script/import_scripts/xenforo.rb@@ -15,7 +15,7 @@ rescue LoadErrorendrequire_relative "base"-AVATAR_DIR = "/path/to/avatars"+# Call it like this:# RAILS_ENV=production bundle exec ruby script/import_scripts/xenforo.rbclass ImportScripts::XenForo < ImportScripts::Base@@ -23,6 +23,7 @@ class ImportScripts::XenForo < ImportScripts::BaseTABLE_PREFIX = "xf_"BATCH_SIZE = 1000ATTACHMENT_DIR = "/tmp/attachments"+ AVATAR_DIR = "/path/to/avatars"def initializesuper