Yep! I've just done that :)


On Tue, Dec 3, 2013 at 12:38 PM, Carlos Antonio da Silva <
notifications@github.com> wrote:

> In actionpack/lib/abstract_controller/rendering.rb:
>
> > @@ -102,6 +102,7 @@ def _process_format(format)
> >      # :api: private
> >      def _normalize_render(*args, &block)
> >        options = _normalize_args(*args, &block)
> > +      options[:variant] = request.variant if defined?(request) && request.variant.present?
>
> If we are leaving this here, I'd leave a comment/todo do remove it in the
> future, as @rafaelfranca <https://github.com/rafaelfranca> commented, it
> seems kinda weird having to do this check if we are inside action pack.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rails/rails/pull/12977/files#r8057129>
> .
>