plataformatec/simple_form — pull request #352 by jfelchner (2011-10-18 18:11:26+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`

This is a rebase of #351.