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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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