Module: DestinationErrors::ClassMethods

Defined in:
lib/destination_errors.rb

Instance Method Summary collapse

Instance Method Details

#has_error_surfaces(value) ⇒ Object

Implementation hook



83
84
85
# File 'lib/destination_errors.rb', line 83

def has_error_surfaces(value)
  self.error_surfaces = value
end

#human_attribute_name(attr, options = {}) ⇒ Object

Required for ActiveModel::Validations



88
89
90
# File 'lib/destination_errors.rb', line 88

def human_attribute_name(attr, options = {})
  attr
end

#lookup_ancestorsObject

Required for ActiveModel::Validations



93
94
95
# File 'lib/destination_errors.rb', line 93

def lookup_ancestors
  [self]
end