Skip to content

Commit 0596f4d

Browse files
authored
Merge pull request rails#51879 from eileencodes/add-test-and-fix-changelog-for-51878
Add test and fix changelog for `schema_cache_ignored_table?`
2 parents 2281edf + 227c590 commit 0596f4d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

activerecord/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
```ruby
66
ActiveRecord.schema_cache_ignored_tables = ["developers"]
7-
ActiveRecord.schema_cache_ignored_tables?("developers")
7+
ActiveRecord.schema_cache_ignored_table?("developers")
88
=> true
99
```
1010

activerecord/test/cases/connection_adapters/schema_cache_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ def test_marshal_dump_and_load_via_disk
231231

232232
def test_marshal_dump_and_load_with_ignored_tables
233233
old_ignore = ActiveRecord.schema_cache_ignored_tables
234+
assert_not ActiveRecord.schema_cache_ignored_table?("professors")
234235
ActiveRecord.schema_cache_ignored_tables = ["professors"]
236+
assert ActiveRecord.schema_cache_ignored_table?("professors")
235237
# Create an empty cache.
236238
cache = new_bound_reflection
237239

0 commit comments

Comments
 (0)