thoughtbot/formulaic — pull request #38 by CraigWilliams (2014-11-28 03:16:07+00:00)
Title: Fixes human_attribute_name in Label

Fix `humanize_attribute_name`

This is the code that was broken. Passing in `class_name` but using `model_name` in the method. `#classify` will also raise an error if `model_name` is not found.

```ruby
def class_exists?(class_name)
Object.const_defined?(model_name.to_s.classify)
rescue NameError
false
end
```