Project

General

Profile

Backport #9161

syntax errors on mime_responds.rb

Added by mrwater (Diogo Cordeiro) almost 6 years ago. Updated almost 6 years ago.

Status:
Third Party's Issue
Priority:
Normal
Assignee:
-
[ruby-core:58607]

Description

=begin
There seems to be a syntax bug within mime_responds.rb, under , under version 1.9.3, action-pack 3.2.11, metal action controller

Under line 191, mimes local is not declared, and there is an additional end associated with the code nearby.
raise ArgumentError, "respond_to takes either types or a block, never both" if mimes.any? && block_given?

    if collector = retrieve_collector_from_mimes(mimes, &block)
      response = collector.response
      response ? response.call : default_render({})
    end

This revealed after upgrading to RubyMine 6.0, when loading local server environment.

This is closed to a comments section, so perhaps it was once commented by default?

=end

History

Updated by mrwater (Diogo Cordeiro) almost 6 years ago

=begin
This was a problem with local code apparently.

For some reason, during the upgrade to RubyMine 6.0 something happened and the line

(({def respond_to(*mimes, &block)})) disappeared
=end

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

  • Description updated (diff)
  • Status changed from Open to Third Party's Issue

Also available in: Atom PDF