Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Hook into ActiveModel errors attribute #2

@calebperkins

Description

@calebperkins

A nifty feature Ambethia's Recaptcha gem supports is the ability to add an error to an object if the recaptcha is invalid, like so:

 if verify_recaptcha(:model => @post, :message => "Oh! It's error with reCAPTCHA!") && @post.save
    # some logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions