Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 8 support? #135

Open
KoellM opened this issue Nov 18, 2024 · 0 comments
Open

Rails 8 support? #135

KoellM opened this issue Nov 18, 2024 · 0 comments

Comments

@KoellM
Copy link

KoellM commented Nov 18, 2024

升级到 Rails 8 之后出现错误

/home/deploy1/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0/gems/second_level_cache-2.7.1/lib/second_level_cache/active_record/belongs_to_association.rb:7:in `find_target': wrong number of arguments (given 1, expected 0) (ArgumentError)
        from /home/deploy1/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0/gems/activerecord-8.0.0/lib/active_record/associations/association.rb:190:in `load_target'
        from /home/deploy1/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0/gems/activerecord-8.0.0/lib/active_record/associations/association.rb:76:in `reload'
        from /home/deploy1/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0/gems/activerecord-8.0.0/lib/active_record/associations/singular_association.rb:11:in `reader'
        from /home/deploy1/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0/gems/activerecord-8.0.0/lib/active_record/associations/builder/association.rb:105:in `xml'

看起来是因为 Rails 8 新的异步关联加载 API
rails/rails@fe92250#diff-cac8ca279408e7447fa1f97443ec4c548a42a115c70349f7fa5e8ade10198a1cR240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant