Class: Merb::Authentication::Errors

Class | Merb::Authentication::Errors
In: | lib/merb-auth-core/errors.rb
Parent: | Object

Lifted from DataMapper‘s dm-validations plugin :) @author Guy van den Berg @since DM 0.9

### Methods

add clear! each empty? full_messages method_missing on

### Included Modules

Enumerable

### Public Instance methods

add(field_name, message)

Add a authentication error. Use the field_name :general if the errors does not apply to a specific field of the Resource.

@param <Symbol> field_name the name of the field that caused the error @param <String> message the message to add

clear!()

Clear existing authentication errors.

each() {|v| ...}
empty?()
full_messages()

Collect all errors into a single list.

method_missing(meth, *args, &block)
on(field_name)

Return authentication errors for a particular field_name.

@param <Symbol> field_name the name of the field you want an error for

[Validate]