All checks were successful
continuous-integration/drone/push Build is passing
Move the various sections to their own concerns, so they're easier to find and maintain
14 lines
319 B
Ruby
14 lines
319 B
Ruby
module Settings
|
|
module MediaWikiSettings
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
field :mediawiki_public_url, type: :string,
|
|
default: ENV["MEDIAWIKI_PUBLIC_URL"].presence
|
|
|
|
field :mediawiki_enabled, type: :boolean,
|
|
default: ENV["MEDIAWIKI_PUBLIC_URL"].present?
|
|
end
|
|
end
|
|
end
|