plataformatec/simple_form — pull request #351 by jfelchner (2011-10-18 17:03:36+00:00)
Title: Fix SimpleForm/ActiveModel compatibility

When using SimpleForm with ActiveModel, the errors hash does not have a `#present?`
method available to it. Instead, I'm falling back to the Error's `#empty?`.

Also, checking for `object` first is redundant since, if `object` responds to
`#errors`, it's obviously not `nil`