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

Add new adapter for ActiveRecord 4.2, fix #198 #200

Merged
merged 3 commits into from
Mar 4, 2016

Conversation

exAspArk
Copy link
Contributor

Yet another try to add support for ActiveRecord 4.2 and fix #198.
It just adds a new adapter by replacing ClosedTransaction with NullTransaction and using ActiveRecord::ConnectionAdapters::TransactionManager. Generally it keeps the same behavior.

There is also another PR #190 which changes MonitorMixin to add fiber aware support.

@@ -11,7 +11,7 @@ group :development do
gem 'activerecord', "= #{ENV['activerecord'] || '4.1.8'}"
gem 'em-mongo'
gem 'bson_ext'
gem 'mysql2'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why you're freezing the version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why, but it failed to load an adapter https://travis-ci.org/igrigorik/em-synchrony/builds/102289375:

Specified 'em_mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile.

Probably, it is related to the issue rails/rails#21544 (found it here). This fix rails/rails@5da5e37 hasn't been released yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened a separate PR #203 for it

@marshall-lee
Copy link

@igrigorik hello! why you don't like an original MonitorMixin approach?

igrigorik added a commit that referenced this pull request Mar 4, 2016
Add new adapter for ActiveRecord 4.2, fix #198
@igrigorik igrigorik merged commit 7bd47d5 into igrigorik:master Mar 4, 2016
@igrigorik
Copy link
Owner

\o/ ... thank you for working on this!

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

Successfully merging this pull request may close these issues.

em-synchrony/activerecord not work on ActiveRecord 4.2.1
3 participants