DEV: Add less confusing aliases for base_uri and base_url_no_prefix

This commit is contained in:
Gerhard Schlager 2018-11-06 14:17:13 +01:00
parent 1e64658c25
commit 555f467727
1 changed files with 5 additions and 0 deletions

View File

@ -288,6 +288,11 @@ module Discourse
nil
end
class << self
alias_method :base_path, :base_uri
alias_method :base_url_no_path, :base_url_no_prefix
end
READONLY_MODE_KEY_TTL ||= 60
READONLY_MODE_KEY ||= 'readonly_mode'.freeze
PG_READONLY_MODE_KEY ||= 'readonly_mode:postgres'.freeze