Class: EnsureNoWww
- Inherits:
-
Conveyors::Processor
- Object
- Conveyors::Processor
- EnsureNoWww
- Defined in:
- lib/rad/processors/ensure_no_www.rb
Overview
enshure domain has no www. except if there’s custom subdomain
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/rad/processors/ensure_no_www.rb', line 3 def call workspace.params.must_be.defined if workspace.params.format == 'html' and url_with_www? redirect_without_www else next_processor.call end end |