class Tripod::Errors::Validations

Raised when a persistence method ending in ! fails validation. The message will contain the full error messages from the Resource in question.

@example Create the error.

Validations.new(person.errors)

Attributes

record[R]
resource[R]

Public Class Methods

new(resource) click to toggle source
# File lib/tripod/errors/validations.rb, line 13
def initialize(resource)
  @resource = resource
end