Files
grecia/config/initializers
Javi Martín 5f8db67cc0 Make Apartment compatible with Rails 7
The `database:` argument from the `connected_to` method was deprecated
in Rails 6.1 [1] and removed in Rails 7.0 [2]. The ros-apartement gem
has already introduced fixes for this issue [3][4], but there has been
no release including these fixes.

So we're applying the fix in our code.

Note that, since Apartment already overwrites the `connected_to` method
by creating a `connected_to_with_tenant` method, we're calling the
`connected_to_without_tenant` method inside the patch, which is
equivalent to ActiveRecord's original `connected_to`.

[1] Pull request 37874 in https://github.com/rails/rails
[2] Pull request 40530 in https://github.com/rails/rails/pull
[3] Pull request 194 in https://github.com/rails-on-services/apartment
[4] Pull request 243 in https://github.com/rails-on-services/apartment
2024-04-11 20:28:23 +02:00
..
2021-08-15 01:26:29 +02:00
2023-09-11 23:40:37 +02:00
2020-06-16 13:47:38 +02:00
2019-04-16 17:28:06 +02:00
2023-10-24 19:00:43 +02:00
2023-11-23 18:21:29 +01:00
2017-04-03 12:30:57 +02:00
2015-07-15 13:32:13 +02:00
2023-09-11 23:40:37 +02:00
2019-04-16 17:28:06 +02:00