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