Module: ActiveInteractor::HasActiveModelErrors::ClassMethods
- Defined in:
- lib/active_interactor/has_active_model_errors.rb
Instance Method Summary collapse
Instance Method Details
#human_attribute_name(attribute, _options = {}) ⇒ Object
10 11 12 |
# File 'lib/active_interactor/has_active_model_errors.rb', line 10 def human_attribute_name(attribute, = {}) attribute.respond_to?(:to_s) ? attribute.to_s.humanize : attribute end |
#lookup_ancestors ⇒ Object
14 15 16 |
# File 'lib/active_interactor/has_active_model_errors.rb', line 14 def lookup_ancestors [self] end |