activerecord_i18n_defaults icon indicating copy to clipboard operation
activerecord_i18n_defaults copied to clipboard

attribute_key_name for ActiveRecord#human_attribute_name can be a symbol

Open maca opened this issue 14 years ago • 1 comments

Passing a symbol for attribute_key_name will blow because symbol doesn't respond to #humanize.

Changing line 10 to: defaults << attribute_key_name.to_s.humanize

fixes the issue

maca avatar Apr 05 '10 06:04 maca

Hi Macario,

thanks for the patch, I'll apply it.

Case you wanna send me a pull request, I can accept it, too :)

dcrec1 avatar Apr 05 '10 20:04 dcrec1