diff options
author | claudiob <claudiob@gmail.com> | 2013-11-06 12:57:21 -0800 |
---|---|---|
committer | claudiob <claudiob@gmail.com> | 2013-11-06 13:03:46 -0800 |
commit | c61544c7818f109c132fcad9db73d43216417535 (patch) | |
tree | 63356431e4898a820f8f8ff8f7103b2f2c36dba7 /actionpack/lib/action_pack.rb | |
parent | 256ae7dec5626620eb5a064f50931e1d9317b2a4 (diff) | |
download | rails-c61544c7818f109c132fcad9db73d43216417535.tar.gz rails-c61544c7818f109c132fcad9db73d43216417535.tar.bz2 rails-c61544c7818f109c132fcad9db73d43216417535.zip |
Add +capitalize+ option to Inflector.humanize
So strings can be humanized without being capitalized:
'employee_salary'.humanize # => "Employee salary"
'employee_salary'.humanize(capitalize: false) # => "employee salary"
Diffstat (limited to 'actionpack/lib/action_pack.rb')
0 files changed, 0 insertions, 0 deletions