Monkey patch Rails ActiveModel errors with error_code attribute