Module: ActiveInteractor::ActiveModelErrorMethods
- Extended by:
- ActiveSupport::Concern
- Included in:
- Context::Base, Result
- Defined in:
- lib/active_interactor/active_model_error_methods.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.
8 9 10 |
# File 'lib/active_interactor/active_model_error_methods.rb', line 8 def errors @errors end |
Instance Method Details
#read_attribute_for_validation(attribute_name) ⇒ Object
26 27 28 |
# File 'lib/active_interactor/active_model_error_methods.rb', line 26 def read_attribute_for_validation(attribute_name) send(attribute_name.to_sym) end |