class ActiveModel::Validations::GatesOfHeavenValidator
Public Instance Methods
validate_each(record, attribute, value)
click to toggle source
# File lib/active_model/validations/gates_of_heaven_validator.rb, line 6 def validate_each(record, attribute, value) pass = GatesOfHeaven::Doorman.new(record.password) if pass.guard.present? record.errors.add(:password, pass.guard) end end