Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Ruby 1.9 compat: block parameters must be local variable

#1000

Due to this change in Ruby 1.9, http://www.ruby-forum.com/topic/...

script/plugin throws a SyntaxError

formal argument cannot be an instance variable (SyntaxError)

in Ruby 1.9.

Added a patch tested on Ruby 1.9 trunk and Ruby 1.8.7.

Reported by Akira Matsuda · September 9th, 2008 @ 09:02 AM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [5f7c42413b099f8811c45a27202cce5dc9e7d285]) Ruby 1.9 compat: remove instance variables and global variables from block parameters

    [#1000 Ruby 1.9 compat: block parameters must be local variable state:resolved]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    September 9th, 2008 @ 06:39 PM

  2. Jeremy Kemper