mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
Update Rubocop to 0.60
This commit is contained in:
@ -14,6 +14,8 @@ class BulkImport::Base
|
||||
NOW ||= "now()".freeze
|
||||
PRIVATE_OFFSET ||= 2**30
|
||||
|
||||
# rubocop:disable Layout/AlignHash
|
||||
|
||||
CHARSET_MAP = {
|
||||
"armscii8" => nil,
|
||||
"ascii" => Encoding::US_ASCII,
|
||||
@ -53,6 +55,8 @@ class BulkImport::Base
|
||||
"utf8" => Encoding::UTF_8,
|
||||
}
|
||||
|
||||
# rubocop:enable Layout/AlignHash
|
||||
|
||||
def initialize
|
||||
charset = ENV["DB_CHARSET"] || "utf8"
|
||||
db = ActiveRecord::Base.connection_config
|
||||
|
Reference in New Issue
Block a user