From dd7c1ea7cf00f58dd9fe064c08287da613daedee Mon Sep 17 00:00:00 2001 From: shunsugai Date: Fri, 5 Jul 2024 15:49:02 +0900 Subject: [PATCH] fix: Support ActiveRecord config loading Ref: https://github.com/mbleigh/seed-fu/pull/112 --- lib/seed-fu.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/seed-fu.rb b/lib/seed-fu.rb index 4748559..933c0f4 100644 --- a/lib/seed-fu.rb +++ b/lib/seed-fu.rb @@ -31,6 +31,6 @@ def self.seed(fixture_paths = SeedFu.fixture_paths, filter = nil) end # @public -class ActiveRecord::Base +ActiveSupport.on_load(:active_record) do extend SeedFu::ActiveRecordExtension end