File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
activerecord/lib/active_record Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,12 @@ def set_fixture_class(class_names = {})
43
43
end
44
44
45
45
def fixture_path
46
- ActiveRecord . deprecator . warn ( "TestFixtures#fixture_path is deprecated and will be removed in Rails 7.2. Use #fixture_paths instead." )
47
- fixture_paths
46
+ ActiveRecord . deprecator . warn ( <<~WARNING )
47
+ TestFixtures#fixture_path is deprecated and will be removed in Rails 7.2. Use #fixture_paths instead.
48
+ If multiple fixture paths have been configured with #fixture_paths, then #fixture_path will just return
49
+ the first path.
50
+ WARNING
51
+ fixture_paths . first
48
52
end
49
53
50
54
def fixture_path = ( path )
@@ -96,8 +100,12 @@ def uses_transaction?(method)
96
100
end
97
101
98
102
def fixture_path
99
- ActiveRecord . deprecator . warn ( "TestFixtures#fixture_path is deprecated and will be removed in Rails 7.2. Use #fixture_paths instead." )
100
- fixture_paths
103
+ ActiveRecord . deprecator . warn ( <<~WARNING )
104
+ TestFixtures#fixture_path is deprecated and will be removed in Rails 7.2. Use #fixture_paths instead.
105
+ If multiple fixture paths have been configured with #fixture_paths, then #fixture_path will just return
106
+ the first path.
107
+ WARNING
108
+ fixture_paths . first
101
109
end
102
110
103
111
def run_in_transaction?
You can’t perform that action at this time.
0 commit comments