discourse/lib/generators/plugin/templates/route_constraint.rb.erb

6 lines
121 B
Plaintext

class <%= classified_name %>Constraint
def matches?(request)
SiteSetting.<%= underscored_name %>_enabled
end
end