lib/temping.rb in temping-3.1.0 vs lib/temping.rb in temping-3.2.0
- old
+ new
@@ -1,13 +1,9 @@
require "active_record"
require "active_support/core_ext/string"
class Temping
def self.create(model_name, &block)
- unless ActiveRecord::Base.connected?
- ActiveRecord::Base.establish_connection("sqlite3:///:memory:")
- end
-
factory = ModelFactory.new(model_name.to_s.classify, &block)
factory.klass
end
class ModelFactory