diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-03 22:06:57 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-03 22:08:18 -0200 |
commit | bc26f442d2ef31facc493f4db518f6e104a4f14d (patch) | |
tree | 3c423376fe56bb0dee83d24e64682f02deee62ec /actionpack/lib | |
parent | 501acab943cdc3a5ac389cfd9b39dc34d3ca86fb (diff) | |
download | rails-bc26f442d2ef31facc493f4db518f6e104a4f14d.tar.gz rails-bc26f442d2ef31facc493f4db518f6e104a4f14d.tar.bz2 rails-bc26f442d2ef31facc493f4db518f6e104a4f14d.zip |
Add nodoc to added VariantFilter class
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/mime_responds.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb index 9a88a01233..0d28409aaa 100644 --- a/actionpack/lib/action_controller/metal/mime_responds.rb +++ b/actionpack/lib/action_controller/metal/mime_responds.rb @@ -191,7 +191,7 @@ module ActionController #:nodoc: # # You can set the variant in a +before_action+: # - # request.variant = :tablet if request.user_agent =~ /iPad/ + # request.variant = :tablet if request.user_agent =~ /iPad/ # # Respond to variants in the action just like you respond to formats: # @@ -287,7 +287,7 @@ module ActionController #:nodoc: # * for other requests - i.e. data formats such as xml, json, csv etc, if # the resource passed to +respond_with+ responds to <code>to_<format></code>, # the method attempts to render the resource in the requested format - # directly, e.g. for an xml request, the response is equivalent to calling + # directly, e.g. for an xml request, the response is equivalent to calling # <code>render xml: resource</code>. # # === Nested resources @@ -457,7 +457,7 @@ module ActionController #:nodoc: @format = request.negotiate_mime(@responses.keys) end - class VariantFilter + class VariantFilter #:nodoc: def initialize(variant) @variant = variant end |