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
10 11 12 |
# File 'lib/active_interactor/active_model_error_methods.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/active_model_error_methods.rb', line 14 def lookup_ancestors [self] end |