discourse-docs/lib/docs_constraint.rb
Justin DiRose f32aebdba0
FEATURE: Rename from Knowledge Explorer to Docs (#27)
After internal discussion, the team decided to rename this plugin to `discourse-docs`. No substantial changes made here aside from a settings migration.
2021-01-18 10:38:09 -06:00

7 lines
116 B
Ruby

# frozen_string_literal: true
class DocsConstraint
def matches?(_request)
SiteSetting.docs_enabled
end
end