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 Jan 20, 2021. It is now read-only.
I want to be able to soft validate a model differently based on context (ie. completeness for report generation vs completeness for social networking).
I want to be able to soft validate a model differently based on context (ie. completeness for report generation vs completeness for social networking).
Something like:
soft_validates_presence_of :last_name, :context => :sign_up
Then all the methods would let you pass in the context to limit which fields are included.
The text was updated successfully, but these errors were encountered: