no implicit conversion of ActiveRecord::Reflection::HasManyReflection into Array · Issue #170 · rails-on-services/apartment · GitHub
More Web Proxy on the site http://driver.im/
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
After some investigation, seems like with rails 6.0.4 (this was not happening with rails 6.0.3), the method cached_find_by_statement started receiving an object ActiveRecord::Reflection::BelongsToReflection as the key, which wouldn't work with an array.
**Implemented enhancements:**
- #112 - Allow a list of schemas when switching using schemas - #154
- Create schema between different versions of DB - #155
**Fixed bugs:**
- #170 - Cache Key breaks on rails 6.0.4 - #171
**Closed issues:**
- Add ruby 3 to the build matrix - #162
- update rubocop and fixed broken rules - #157
- added junit formatter and saving test output in circle - #172
Uh oh!
There was an error while loading. Please reload this page.
Steps to reproduce
While running rspec and factories creation, this error would occur.
Expected behavior
No errors thrown
Actual behavior
Unhandled exception
System configuration
Database: (Tell us what database and its version you use.)
Apartment version:
2.9.0
Apartment config (in
config/initializers/apartment.rb
or so):use_schemas
:true
Rails (or ActiveRecord) version:
6.0.4.1
2.7.3
The text was updated successfully, but these errors were encountered: