# File lib/active_record/validations.rb, line 67 def valid?(context = nil) context ||= (new_record? ? :create : :update) output = super(context) errors.empty? && output end