method

method_missing

rails latest stable - Class: ActionController::MimeResponds::Responder

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

method_missing(symbol, &block)
public

No documentation available.

# File actionpack/lib/action_controller/mime_responds.rb, line 162
      def method_missing(symbol, &block)
        mime_constant = Mime.const_get(symbol.to_s.upcase)
      
        if Mime::SET.include?(mime_constant)
          self.class.generate_method_for_mime(mime_constant)
          send(symbol, &block)
        else
          super
        end
      end