class Crecto::Changeset::Changeset(T)

Overview

Changeset instance returned when evaluating a changeset.

user = User.new
changeset = User.changeset(user)

The Changeset instance has the following properties:

Defined in:

crecto/changeset/changeset.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(instance : T) #

[View source]

Instance Method Detail

def add_error(key, val) #

[View source]
def instance #

[View source]
def valid? #

Returns whether the changeset is valid (has no errors)


[View source]