lib/mack-orm.rb in mack-orm-0.7.0.1 vs lib/mack-orm.rb in mack-orm-0.7.1
- old
+ new
@@ -5,7 +5,10 @@
require File.join(base, "database")
require File.join(base, "database_migrations")
require File.join(base, "generators")
require File.join(base, "genosaurus_helpers")
require File.join(base, "model_column")
-require File.join(base, "orm_helpers")
-require File.join(base, "scaffold_generator", "scaffold_generator")
+require File.join(base, "scaffold_generator", "scaffold_generator")
+
+Mack::Environment.after_class_method(:load) do
+ Mack::Database.establish_connection(Mack.env)
+end
\ No newline at end of file