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

Closed
lighthouse-import opened this Issue May 16, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@lighthouse-import

Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/6585
Created by Jason Lewis - 2011-03-15 18:41:39 UTC

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.

@lighthouse-import

This comment has been minimized.

Show comment
Hide comment
@lighthouse-import

lighthouse-import May 16, 2011

Imported from Lighthouse.
Comment by ifesdjeen - 2011-03-19 10:35:07 UTC

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...

Imported from Lighthouse.
Comment by ifesdjeen - 2011-03-19 10:35:07 UTC

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment