Method: Phaseout::Handler#call

Defined in:
lib/phaseout/handler.rb

#call(&action_block) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/phaseout/handler.rb', line 10

def call(&action_block)
  if seo_fields
    @controller.seo_tags = seo_fields.to_html @controller
  else
    @controller.seo_tags = @default.to_html @controller
  end
  action_block.call
  set_blank_field if @controller.status == 200 && @blank_field && @editable
  true
end