1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/controller/mime
Lukasz Strzalkowski f9b6b865e6 Variant negotiation
Allow setting `request.variant` as an array - an order in which they will be
rendered.

For example:

  request.variant = [:tablet, :phone]

  respond_to do |format|
    format.html.none
    format.html.phone # this gets rendered
  end
2014-02-13 16:22:56 +01:00
..
accept_format_test.rb
respond_to_test.rb Variant negotiation 2014-02-13 16:22:56 +01:00
respond_with_test.rb Fixing repond_with working directly on the options hash 2013-10-09 12:36:26 +03:00