molten-trunk/molten5_withgrid/app/models/lead.rb
def validates_email_not_free
    return if !validate_attributes or email.blank?
    FREE_EMAIL_DOMAINS.each do |domain|
      if email =~ /#{domain}/
        errors.add('email',"must not be a free account.")
      end
    end
  end
# Email account can't be from a free provider
Email account can't be from a free provider
Email account can ' t be from a free provider
def validates_email_not_free
    return if !validate_attributes or email.blank?
    FREE_EMAIL_DOMAINS.each do |domain|
      if email =~ /#{domain}/
        errors.add('email',"must not be a free account.")
      end
    end
  end
def validates_email_not_free return if ! validate_attributes or email . blank? FREE_EMAIL_DOMAINS . each do | domain | if email =~ / #{ domain } / errors . add ( 'email' , "must not be a free account." ) end end end
Email account can't be from a free provider
Email account can ' t be from a free provider