Module: ActiveInteractor::HasActiveModelErrors
- Extended by:
- ActiveSupport::Concern
- Included in:
- Context::Base, Result
- Defined in:
- lib/active_interactor/has_active_model_errors.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/active_interactor/has_active_model_errors.rb', line 7 def errors @errors end |
Instance Method Details
#read_attribute_for_validation(attribute_name) ⇒ Object
24 25 26 |
# File 'lib/active_interactor/has_active_model_errors.rb', line 24 def read_attribute_for_validation(attribute_name) send(attribute_name.to_sym) end |