-
Notifications
You must be signed in to change notification settings - Fork 151
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
uninitialized constant ActiveRecord::ConnectionAdapters::ClosedTransaction #189
Comments
I would also like to see this issue solved. |
+1 |
This pins the Gemfile to 1.0.3 which seems to work.
+1 |
+1 same error here. Rollback to 1.0.3 fixed the problem. |
To work around igrigorik#178 and igrigorik#189.
+1 |
To work around igrigorik#189.
+1 |
2 similar comments
+1 |
+1 |
+1 |
rollback activerecord to 4.1.9 |
+1 |
Fixed with the following patch.(not tested in production environment) if ::ActiveRecord::VERSION::STRING >= "4.2.0"
module EM::Synchrony
module ActiveRecord
module Adapter
def reset_transaction
@transaction_manager = ::ActiveRecord::ConnectionAdapters::TransactionManager.new(self)
end
delegate :open_transactions, :current_transaction, :begin_transaction, :commit_transaction, :rollback_transaction, to: :transaction_manager
end
end
end
end |
igrigorik/em-synchrony#189 * em-synchrony 1.0.3 is required for ActiveRecord 3.x * em-syncrhony 1.0.4 is happy for ActiveRecord 4.x (although in some cases it is still fine with 1.0.3)
igrigorik/em-synchrony#189 * em-synchrony 1.0.3 is required for ActiveRecord 3.x * em-syncrhony 1.0.4 is happy for ActiveRecord 4.x (although in some cases it is still fine with 1.0.3)
Any update on this? |
Should be fixed now with 6c88bbf (although no new release yet). |
Ok, any ETA for the new release? |
@dgutov @ShogunPanda we're overdue for a release; I can push one out. That said, I'd love to see if we can get #190 in first. |
@igrigorik From what I understand of #190, it would require a major version bump. I think it would be better to push out a backward-compatible release first. |
@dgutov sounds reasonable. Side topic: can you please ping me on [email protected]? :) |
The new version has been released. |
Hi. I just upgraded to em-synchrony 1.0.4.
Whenever I try to make any operation with ActiveRecord I get this error using ActiveRecord 4.2.0:
Can you please fix it? :)
The text was updated successfully, but these errors were encountered: