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
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.