Tomas Varneckas, I see your point!
Xavier Noria… do you agree as well? I think it reads better:
humanize("employee_salary") # => "Employee salary"
humanize("employee_salary", capitalize: false) # => "employee salary"
On Wednesday, November 6, 2013 10:08:54 AM UTC-8, Tomas Varneckas wrote:
>
> Boolean arguments are really cryptic in most cases.
> Perhaps you should add an options hash instead?
>
> E.g:
> humanize("employee_salary", capitalize: false)
>
>
> On Wed, Nov 6, 2013 at 7:57 PM, Chad Woolley <[email protected]<javascript:>
> > wrote:
>
>> +1, I was just wishing for this last week :)
>>
>>
>> On Wed, Nov 6, 2013 at 10:45 AM, Xavier Noria <[email protected]<javascript:>
>> > wrote:
>>
>>> Sounds good to me.
>>>
>>> The documentation would say "if +capitalize+ is true", with "true" in
>>> regular font. Please update the AS guide as well if you are so kind.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Core" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected] <javascript:>.
>>> To post to this group, send email to
>>> [email protected]<javascript:>
>>> .
>>> Visit this group at http://groups.google.com/group/rubyonrails-core.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Core" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to
>> [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/rubyonrails-core.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.