Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Add context to soft validate #4

Open
davidray opened this issue Apr 12, 2012 · 0 comments
Open

Add context to soft validate #4

davidray opened this issue Apr 12, 2012 · 0 comments

Comments

@davidray
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant