class WipeOut::Validate
Validates plan has proper configuration and that all ActiveRecord class attributes are explicily defined in the plan. Validation is a seperate step, after plan is defined. We don't assume plan is valid stadalone, this allows for plans composition.
Constants
- VALIDATORS
Public Instance Methods
call()
click to toggle source
See {Plans::BuiltPlan#validate}
@return [Array<String>]
# File lib/wipe_out/validate.rb, line 18 def call VALIDATORS.map do |validator| validator.call(plan, ar_class, config, result) end result end
Private Instance Methods
result()
click to toggle source
# File lib/wipe_out/validate.rb, line 28 def result @result ||= ValidationResult.new end