Class: Crystal::Processors::EnsureNoWww
- Inherits:
-
Processor
- Object
- Processor
- Crystal::Processors::EnsureNoWww
- Defined in:
- lib/crystal_ext/ensure_no_www.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/crystal_ext/ensure_no_www.rb', line 8 def call workspace.params.must_be.defined if workspace.params.html? and url_with_www? redirect_without_www else next_processor.call end end |