lib/soft_validation.rb
# The validation set to fix is set prior to running the fix, at the first step.
# It can be refined/restricted there as needed, letting specific contexts (e.g. 
# access in controller) defined the scope.
The validation set to fix is set prior to running the fix, at the first step.
It can be refined/restricted there as needed, letting specific contexts  defined the scope.
The validation set to fix is set prior to running the fix at the first step . It can be refined / restricted there as needed letting specific contexts defined the scope .
def fix_soft_validations
    return false if !soft_validated?
    soft_validations.soft_validations.each do |v|
      if fix = fix_for(v.soft_validation_method)
        if self.send(fix)
          v.fixed = :fixed
        else
          v.fixed = :fix_error
        end
      else
        v.fixed = :no_fix_available
      end
    end
    soft_validations.fixes_run = true
    true
  end
def fix_soft_validations return false if ! soft_validated? soft_validations . soft_validations . each do | v | if fix = fix_for ( v . soft_validation_method ) if self . send ( fix ) v . fixed = :fixed else v . fixed = :fix_error end else v . fixed = :no_fix_available end end soft_validations . fixes_run = true true end
The validation set to fix is set prior to running the fix, at the first step.
The validation set to fix is set prior to running the fix at the first step .