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.

accept String value for render_partial :as option

#6222

Currently, render_partial :as option only accepts a Symbol value.
This seems a little bit unnatural since it accepts the partial name by String. IMO it's annoying to use different syntax for "partial name" and "variable name".

Attached a patch to accept both String and Symbol.

Reported by Akira Matsuda · December 25th, 2010 @ 03:28 PM

State: committed
Milestone: 3.1
Assigned to: Santiago Pastorino Santiago Pastorino
Importance: Low

Activity

  1. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to open
    • Milestone set to 3.1
    • Assigned user set to Santiago Pastorino
    • Importance changed from to Low

    This doesn't apply on master, please rebase it.

    February 1st, 2011 @ 02:38 PM

  2. Akira Matsuda
  3. Repository
    Repository
    • State changed from open to committed

    February 1st, 2011 @ 03:04 PM