File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
lib/active_record/connection_adapters Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ * Add a load hook for ` ActiveRecord::ConnectionAdapters::Mysql2Adapter `
2
+ (named ` active_record_mysql2adapter ` ) to allow for overriding aspects of the
3
+ ` ActiveRecord::ConnectionAdapters::Mysql2Adapter ` class. This makes ` Mysql2Adapter `
4
+ consistent with ` PostgreSQLAdapter ` and ` SQLite3Adapter ` that already have load hooks.
5
+
6
+ * fatkodima*
7
+
1
8
* Introduce adapter for Trilogy database client
2
9
3
10
Trilogy is a MySQL-compatible database client. Rails applications can use Trilogy
Original file line number Diff line number Diff line change @@ -179,5 +179,6 @@ def default_prepared_statements
179
179
false
180
180
end
181
181
end
182
+ ActiveSupport . run_load_hooks ( :active_record_mysql2adapter , Mysql2Adapter )
182
183
end
183
184
end
Original file line number Diff line number Diff line change @@ -1495,6 +1495,9 @@ These are the load hooks you can use in your own code. To hook into the initiali
1495
1495
| ` ActiveJob::TestCase ` | ` active_job_test_case ` |
1496
1496
| ` ActiveRecord::Base ` | ` active_record ` |
1497
1497
| ` ActiveRecord::TestFixtures ` | ` active_record_fixtures ` |
1498
+ | ` ActiveRecord::ConnectionAdapters::PostgreSQLAdapter ` | ` active_record_postgresqladapter ` |
1499
+ | ` ActiveRecord::ConnectionAdapters::Mysql2Adapter ` | ` active_record_mysql2adapter ` |
1500
+ | ` ActiveRecord::ConnectionAdapters::SQLite3Adapter ` | ` active_record_sqlite3adapter ` |
1498
1501
| ` ActiveStorage::Attachment ` | ` active_storage_attachment ` |
1499
1502
| ` ActiveStorage::VariantRecord ` | ` active_storage_variant_record ` |
1500
1503
| ` ActiveStorage::Blob ` | ` active_storage_blob ` |
You can’t perform that action at this time.
0 commit comments