Skip to content
This repository was archived by the owner on Feb 7, 2018. It is now read-only.
This repository was archived by the owner on Feb 7, 2018. It is now read-only.

Validation helpers via errors object #52

@marten

Description

@marten

The actual API is also up for debate, so feel free to have better ideas than just using ActiveModel::Errors. The new README proposes:

  def validate
    errors.add(:id, "can't contain spaces") if id.include?(" ")
  end
  • This needs to be implemented.
  • Remove the old validations module from alpha_compat?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions