plataformatec/simple_form — comment on commit 3af639660d59832007181ca1cff3f0c4378cc9ce
File:  line 0
By nashby:

I think we can extend `dom_class` method to take symbol or string as well:

```ruby
def dom_class(record, prefix = nil)
singular = if record.is_a?(Symbol) || record.is_a?(String)
record
else
ActiveModel::Naming.param_key(record)
end
prefix ? "#{prefix}#{JOIN}#{singular}" : singular
end
```