Making the error_for method public
Making the error_for method public

Making the error_for method public.

Moving the return statement up at the beginning of the method. No sense
in calculating the class_name if there are no errors for the attribute.

sgruhier/foundation_rails_helper,dsandstrom/foundation_rails_helper