def safety_cone_filter
      if cone = fetch_cone
        if cone.type == 'notice'
          flash.now["safetycone_#{notice_type(cone.type)}"] = cone.message
        else
          flash["safetycone_#{notice_type(cone.type)}"] = cone.message
        end

        redirect_to safety_redirect if cone.type == 'block'
      end
    end
def safety_cone_filter
      if cone = fetch_cone
        if cone.type == 'notice'
          flash.now["safetycone_#{notice_type(cone.type)}"] = cone.message
        else
          flash["safetycone_#{notice_type(cone.type)}"] = cone.message
        end

        redirect_to safety_redirect if cone.type == 'block'
      end
    end
Filter method that does the SafetyCone action
 based on the configuration.