--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Sets the \format by string extension, which can be used to force custom formats that are not controlled by the extension.
- !ruby/struct:SM::Flow::VERB 
  body: "  class ApplicationController &lt; ActionController::Base\n    before_filter :adjust_format_for_iphone\n\n    private\n      def adjust_format_for_iphone\n        request.format = :iphone if request.env[&quot;HTTP_USER_AGENT&quot;][/iPhone/]\n      end\n  end\n"
full_name: ActionController::AbstractRequest#format=
is_singleton: false
name: format=
params: (extension)
visibility: public
