Module: ActiveInteractor::ActiveModelErrorMethods::ClassMethods

Defined in:
lib/active_interactor/active_model_error_methods.rb

Instance Method Summary collapse

Instance Method Details

#human_attribute_name(attribute, _options = {}) ⇒ Object



12
13
14
# File 'lib/active_interactor/active_model_error_methods.rb', line 12

def human_attribute_name(attribute, _options = {})
  attribute.respond_to?(:to_s) ? attribute.to_s.humanize : attribute
end

#lookup_ancestorsObject



16
17
18
# File 'lib/active_interactor/active_model_error_methods.rb', line 16

def lookup_ancestors
  [self]
end