Skip to content

Commit

Permalink
init.rb and validates_email_with_smtp module
Browse files Browse the repository at this point in the history
  • Loading branch information
Jussi Uusi-Illikainen committed Jan 19, 2009
1 parent 3cd74bf commit f27fc5d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions init.rb
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'
19 changes: 19 additions & 0 deletions lib/validates_email_with_smtp.rb
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

0 comments on commit f27fc5d

Please sign in to comment.