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.

ActiveSupport::CoreExtensions::String::Inflections should coerce type

#6585

I'm not sure if this has been considered and/or dismissed, but if #humanize, #camelize, etc called #to_s on the receiver, it would avoid a lot of whiny nils and other errors, and make view code more manageable (i.e., avoid having to remember to call to_s before humanize on values that might be nil.

Reported by Jason Lewis · March 15th, 2011 @ 06:41 PM

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

Activity

  1. ifesdjeen
    ifesdjeen

    Not sure, why exactly that is raised.

    If it's String::Inflections, it seems to be clear enough that it should be called on string...

    March 19th, 2011 @ 10:35 AM