Class: ArtisanMemoryRepository::User

Inherits:
Base
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/artisan-memory-repository/models/user.rb

Instance Method Summary collapse

Methods inherited from Base

#==, _collections, _fields, #attributes, boolean, collections, data_attributes, #get, #init, #saves?, #set, #to_param, #update_attributes

Constructor Details

#initialize(*args) ⇒ User

Returns a new instance of User.



10
11
12
13
# File 'lib/artisan-memory-repository/models/user.rb', line 10

def initialize(*args)
  @external_errors = []
  super(*args)
end

Instance Method Details

#add_error(*args) ⇒ Object



26
27
28
# File 'lib/artisan-memory-repository/models/user.rb', line 26

def add_error(*args)
  @external_errors << args
end