-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
init.rb and validates_email_with_smtp module
- Loading branch information
Jussi Uusi-Illikainen
committed
Jan 19, 2009
1 parent
3cd74bf
commit f27fc5d
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
require File.dirname(__FILE__) + '/lib/validates_email_with_smtp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
require File.dirname(__FILE__) + '/mail_check' | |||
|
|||
module VaildatesEmailWithSmtp | |||
def self.included(base) | |||
base.class_eval do | |||
extend ClassMethods | |||
end | |||
end | |||
|
|||
module ClassMethods | |||
def validates_email_with_smtp(*args) | |||
|
|||
end | |||
end | |||
end | |||
|
|||
class ActiveRecord::Base | |||
include ValidatesEmailWithSmtp | |||
end |