Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

email_validation

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email_validation

  • 1.2.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

email_validation

Simple email validator for Rails 3+

AuthorTim Morgan
Version1.1.1 (Jul 19, 2011)
LicenseReleased under the MIT license.

About

This gem adds a very simple email address format validator to be used with ActiveRecord models in Rails 3.0+. It supports localized error messages.

Installation

Add the gem to your project's Gemfile:

gem 'email_validation'

Usage

This gem is an EachValidator, and thus is used with the validates method:

class User < ActiveRecord::Base
  validates :email_address,
            presence: true,
			email: true
end

The localization key is invalid_email, and can be specified in the localized YAML file like so:

en:
  activerecord:
	errors:
	  messages:
	    invalid_email: Email address is invalid.

FAQs

Package last updated on 07 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc