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_fields.to_html @controller else @controller. = @default.to_html @controller end action_block.call set_blank_field if @controller.status == 200 && @blank_field && @editable true end |