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

Add context to soft validate #4

@davidray

Description

@davidray

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions