module ObjectAttorney::Errors::ClassMethods
ActiveModel::Errors told me to declare the following methods for a minimal implementation
Public Instance Methods
human_attribute_name(attribute, _options = {})
click to toggle source
# File lib/object_attorney/errors.rb, line 8 def human_attribute_name(attribute, _options = {}) attribute end
i18n_scope()
click to toggle source
Necessary for proper translations
# File lib/object_attorney/errors.rb, line 18 def i18n_scope :activemodel end
lookup_ancestors()
click to toggle source
Necessary for proper translations
# File lib/object_attorney/errors.rb, line 13 def lookup_ancestors [self] end