lib/ssn.rb in ssn-0.3.0 vs lib/ssn.rb in ssn-1.0.0
- old
+ new
@@ -1,10 +1,12 @@
$:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
-require 'ssn/active_record_extensions'
-require 'ssn/social_security_number'
module Ssn
- VERSION = '0.2.0'
+
+ autoload :ActiveRecordExtensions, 'ssn/active_record_extensions'
+ autoload :SocialSecurityNumber, 'ssn/social_security_number'
+ autoload :Version, 'ssn/version'
+
end
-ActiveRecord::Base.send( :include, Ssn::ActiveRecordExtensions ) if defined?( ActiveRecord::Base )
\ No newline at end of file
+ActiveRecord::Base.send( :include, Ssn::ActiveRecordExtensions ) if defined?( ActiveRecord::Base )