lib/auto_increment.rb in auto_increment-1.0.0 vs lib/auto_increment.rb in auto_increment-1.1.0
- old
+ new
@@ -1,12 +1,24 @@
-require 'auto_increment/active_record'
+require "date"
+require "i18n"
+require "active_record"
+require "active_support"
+require "active_support/time_with_zone"
+require "auto_increment/version"
+
+module AutoIncrement
+ autoload :Incrementor, "auto_increment/incrementor"
+ autoload :ActiveRecord , "auto_increment/active_record"
+end
+
+ActiveRecord::Base.send :include, AutoIncrement::ActiveRecord