Closed CraigWilliams closed 9 years ago
I'm having trouble figuring out what the underlying issue is here. I'm not in love with the send("attributes_#{model.class}")
approach, so I'd like to brainstorm other solutions.
Sorry, please ignore hound. We accidentally added it with a bunch of rules we're not following in this project.
@calebthompson ok, this one has no code changes except the class_name
fix
Thanks. Squashed & merged in 9b1d28d2c99a3392bc4caaf830f91c4a4d8f3550
I also cut a new version, so you should be able to upgrade.
Fix
humanize_attribute_name
This is the code that was broken. Passing in
class_name
but usingmodel_name
in the method.#classify
will also raise an error ifmodel_name
is not found.