0.0
No commit activity in last 3 years
No release in over 3 years
Adds non validator errors to active model
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.1

Runtime

 Project Readme

External errors

Add errors from an external source to active model. Useful if you have validations that are not done by the model's validators.

Example usage

# Add errors from an external source to the model:
class SomeModel
  include ActiveModel::Model
  include ExternalErrors
end

some_instance = SomeModel.new
some_instance.valid?
#=> true

some_instance.external_errors << 'some external error'
some_instance.valid?
#=> false