lib/genesis.rb in genesis-1.4.0 vs lib/genesis.rb in genesis-1.5.0

- old
+ new

@@ -1,12 +1,11 @@ -$:.unshift(File.dirname(__FILE__)) unless - $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) +require 'genesis/railtie' if defined?( Rails ) -require 'genesis/active_record_extensions' -require 'genesis/seeder' -require 'genesis/schema_seed' - module Genesis + SEEDS_ROOT = 'db/seeds' -end -ActiveRecord::Base.send :include, Genesis::ActiveRecordExtensions if defined? ActiveRecord::Base + autoload :ActiveRecordExtensions, 'genesis/active_record_extensions' + autoload :SchemaSeed, 'genesis/schema_seed' + autoload :Seeder, 'genesis/seeder' + +end