Rails3 compatibility: replace Errors#on_base