module Responders module ViewVariantResponder def to_html if variant = request.headers["X-View-Variant"].presence action = controller.params[:action] render "#{action}.#{variant}" else super end end end end