You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading development environment (Rails 7.0.2.2)
irb(main):001:1* ReadReplicaRecord.connected_to(role: :reading) do
irb(main):002:1* User.count
irb(main):003:0> end
User Count (1.0ms) SELECT COUNT(*) FROM "users"
=> 80
Actual behavior (with ros-apartment gem)
irb(main):001:1* ReadReplicaRecord.connected_to(role: :reading) do
irb(main):002:1* User.count
irb(main):003:0> end
/Users/kapil/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/activerecord-7.0.2.2/lib/active_record/connection_handling.rb:137:in `connected_to': unknown keyword: :database (ArgumentError)
Steps to reproduce
database.yml
The following fails, (if you remove the
ros-apartment
gem, it will work)Additional NOTES
config/initializers/apartment.rb
Rails 7
Expected behavior (without
ros-apartment
gem)Actual behavior (with
ros-apartment
gem)System configuration
Rails 7.0.2.2
Ruby 3.1.0
ros-apartment 2.11.0
PostgreSQL 14.1
The text was updated successfully, but these errors were encountered: