-
Notifications
You must be signed in to change notification settings - Fork 469
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
Upgrading to Rails 4.2: transactional callbacks deprecation warning fires due to the file require order #867
Comments
I've just generated a test project with Rails 4.2.0.rc3, added I've tried with both develop and 3.1.2 release of |
@zhouguangming which file is that? Is this an app you've upgraded, or a fresh new Rails 4.2 app? |
@pat upgrade from Rails 4.1, it's config/application.rb. |
@zhouguangming please tell us what the issue is and how to fix it. |
This resolves the insistent warning about errors in transactions, covered in #867.
Just pushed a fix for the warning not disappearing into the develop branch. You can use it with the following in your Gemfile: gem 'thinking-sphinx', '~> 3.1.2',
:git => 'git://github.com/pat/thinking-sphinx.git',
:branch => 'develop',
:ref => '87928c9298' |
Yes, that fixes the issue, @pat thanks a lot! |
Hi @pat, |
Just published TS v3.1.3, which includes the Rails 4.2 patches. |
Great! |
I'm trying to upgrade my app to upcoming Rails 4.2 (RC 3) and according to official upgrading manual I've placed next string to
config/application.rb
:But I still getting next output immediately after
rails server
:After some playing with
puts
inconfig/application.rb
I've encountered that thinking_sphinx's file/lib/thinking_sphinx/active_record/base.rb
is getting required before the most part of my app'sconfig/application.rb
is executed.At this point I've using code from today's
develop
branch of thinking sphinx. I've tried to roll back to published version 3.1.2 and then I've get this warning issued somewhere frombundler
:~/.rvm/gems/ruby-2.1.5-gost@global/gems/bundler-1.7.6/lib/bundler/runtime.rb:76
. I've played with puts more and encountered that it's issued while requiring gem better_errors, but it seems unrelated to Active Record at all. Weird.If I remove thinking sphinx from Gemfile at all, warning will disappear.
Any ideas how to solve this?
See rails/rails#18084 (comment) for details.
The text was updated successfully, but these errors were encountered: