module ObjectAttorney::Errors
Constants
- NoDefendantToDefendError
Public Class Methods
included(base_class)
click to toggle source
# File lib/object_attorney/errors.rb, line 23 def self.included(base_class) base_class.extend ActiveModel::Naming base_class.extend ClassMethods end
Public Instance Methods
errors()
click to toggle source
# File lib/object_attorney/errors.rb, line 28 def errors @errors ||= ActiveModel::Errors.new(self) end
read_attribute_for_validation(attribute)
click to toggle source
# File lib/object_attorney/errors.rb, line 32 def read_attribute_for_validation(attribute) send(attribute) end