Flowdock
method

variant

Importance_0
v4.2.1 - Show latest stable - 0 notes - Class: VariantCollector
variant() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/metal/mime_responds.rb, line 310
        def variant
          if @variant.nil?
            @variants[:none] || @variants[:any]
          elsif (@variants.keys & @variant).any?
            @variant.each do |v|
              return @variants[v] if @variants.key?(v)
            end
          else
            @variants[:any]
          end
        end
Register or log in to add new notes.