Open mnawalali opened 7 months ago
Do you have a backtrace, or a way we can reproduce this? This doesn't strike me as a Trilogy bug, but tough to help further without more information.
I experienced the same issue when used gem "activerecord-trilogy-adapter"
in Rails 7.1 app (which does not need it and comes with built-in support for Trilogy).
Ah, we should probably add a < 7.1
constraint on activerecord-trilogy-adapter
.
Unfortunately that'll just send Bundler to find the latest version that had the more open-ended dependency.
Best might be to explicitly check the Rails version and no-op in the Railtie?
That's a good point. Yeah, either no-op or raise/deprecate with a message about removing the gem.
Perhaps try using trilogy
gem instead of activerecord-trilogy-adapter
?
Rails v7.1+ includes Trilogy support by default making this gem unnecessary due as part of https://github.com/rails/rails/pull/47880.
I experienced the same issue when using this gem, and did not have the error once I switched over.
I am using Rails 7.1.1 and when I start my server(rails s) I get the following error unknown keyword: :uses_transaction (ArgumentError)