fixes for plain text bbcode rendering
This commit is contained in:
@@ -67,12 +67,11 @@ Rails.application.configure do
|
||||
config.log_tags = [:request_id]
|
||||
|
||||
# Use a different cache store in production.
|
||||
config.cache_store = :memory_store, { size: 64.megabytes }
|
||||
config.cache_store = :file_store, "/mnt/rails-cache"
|
||||
|
||||
# Use a real queuing backend for Active Job (and separate queues per environment).
|
||||
# config.active_job.queue_adapter = :resque
|
||||
# config.active_job.queue_name_prefix = "legacy_explorer_production"
|
||||
|
||||
config.action_mailer.perform_caching = false
|
||||
|
||||
# Ignore bad email addresses and do not raise email delivery errors.
|
||||
@@ -99,22 +98,6 @@ Rails.application.configure do
|
||||
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
||||
end
|
||||
|
||||
config.log_tags = {
|
||||
ip: ->(request) do
|
||||
request.headers["HTTP_CF_CONNECTING_IP"] || request.remote_ip
|
||||
end,
|
||||
api_token: ->(request) { request.params[:api_token] || "(nil api token)" },
|
||||
user_name: ->(request) do
|
||||
api_token = request.params[:api_token]
|
||||
if api_token
|
||||
user = Domain::Fa::ApiController::API_TOKENS[api_token]
|
||||
user || "(nil user)"
|
||||
else
|
||||
"(nil api_token)"
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user