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.

Model#human_attribute_name does not accept symbols

#3025

Post.human_attribute_name(:body) does not work, I always have to convert :body to string. Would be nice if the API accept symbols too.

Reported by José Valim · August 9th, 2009 @ 06:26 PM

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

Activity

  1. Arthur Zapparoli
    Arthur Zapparoli

    I've attached a patch containing the fix for this ticket

    August 9th, 2009 @ 06:46 PM

  2. Felipe Talavera
    Felipe Talavera

    verified

    +1 This applies to 2-3-stable and master cleanly and pass all the test.

    August 9th, 2009 @ 09:30 PM

  3. Tristan Dunn
    Tristan Dunn
    • Tag changed from activerecord, bugmash to activerecord, bugmash, verified

    +1

    Verified to apply to master and 2-3-stable cleanly with passing tests.

    August 9th, 2009 @ 09:50 PM

  4. Elad Meidar
    Elad Meidar

    +1 Verified Applies on 2-3-stable and master with passing tests.

    August 9th, 2009 @ 09:57 PM

  5. Rizwan Reza
    Rizwan Reza

    verified

    +1 This patch works perfectly.

    August 9th, 2009 @ 11:08 PM

  6. Repository
  7. Repository
  8. José Valim
    José Valim
    • State changed from new to resolved
    • Tag changed from activerecord, bugmash, verified to activerecord, verified

    August 9th, 2009 @ 11:57 PM