You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.
I like this, especially since we could actually make the validations compatible:
defvalidate_integer_stringparam_name,paramreturnifparam.is_a?(String) && /\A\d+\Z/.match(param)errors.addparam_name.to_s,"should be an integer string."end
That way we could decouple this functionality introduction from removing calls to validation helpers, allowing us to first upgrade, and then one by one remove old validations.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The actual API is also up for debate, so feel free to have better ideas than just using ActiveModel::Errors. The new README proposes:
The text was updated successfully, but these errors were encountered: