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.

typo in abstract_renderer?

#5819

Reported by Jan Xie · October 16th, 2010 @ 04:15 AM

State: resolved
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. Aditya Sanghi
    Aditya Sanghi
    • State changed from new to open
    • Milestone set to 3.0.2
    • Tag changed from abstract_renderer, action_view to abstract_renderer, action_view, patch
    • Importance changed from to Low

    yup you're right, it should be :view not :vew.

    Attaching patch.

    October 16th, 2010 @ 09:03 AM

  2. Jeff Kreeftmeijer
    Jeff Kreeftmeijer

    Aw, you beat me to it. Submitting my patch anyway to provide some tests. Since I wasn't sure where to test this, I created actionpack/test/abstract/renderer_test.rb. Any thoughts? :)

    October 16th, 2010 @ 09:33 AM

  3. Aditya Sanghi
    Aditya Sanghi

    @jeff, test looks fine.

    Deleting my patch, no worries! :)

    October 16th, 2010 @ 09:39 AM

  4. José Valim
    José Valim

    Actually, it seems nobody is using that. we can simply remove it.

    October 16th, 2010 @ 09:42 AM

  5. Jeff Kreeftmeijer
    Jeff Kreeftmeijer

    The whole attr_reader part or just the :view reader? I'll yank it out. :)

    October 16th, 2010 @ 10:23 AM

  6. José Valim
    José Valim

    If you remove all and tests still pass, remove it all. :)

    October 16th, 2010 @ 10:27 AM

  7. Jeff Kreeftmeijer
    Jeff Kreeftmeijer

    Removing the whole thing caused a bunch of test fails, so I just removed the :vew attr_reader. Tests still pass. :)

    October 16th, 2010 @ 10:40 AM

  8. Repository
    Repository
    • State changed from open to resolved

    (from [b454bb0a98e3557ad974a93828c3951bce0ac81c]) Remove the :vew attr_reader from ActionView::AbstractRenderer [#5819 typo in abstract_renderer? state:resolved]

    Signed-off-by: Santiago Pastorino santiago@wyeworks.com
    http://github.com/rails/rails/commit/b454bb0a98e3557ad974a93828c395...

    October 16th, 2010 @ 05:17 PM