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

Patch ActiveRecord only when it's available. #166

Merged
merged 1 commit into from
Aug 7, 2017

Conversation

driv3r
Copy link

@driv3r driv3r commented Jul 26, 2017

It crashes when using rails without active record. Also currently there are at least 3 places where we apply stuff to active record:

  • contrib/rails/framework
  • contrib/rails/active_record
  • contrib/active_record

It would be probably best to have one place for this eval, or just use some kind of wrapper method around connection_config that would handle this instead of patching AR

@randy-girard
Copy link
Contributor

Is there a timeline on when this will get merged. This is currently a blocker for me as well.

@ufoot ufoot added this to the 0.8.1 milestone Aug 7, 2017
@ufoot ufoot added the bug Involves a bug label Aug 7, 2017
@ufoot ufoot merged commit 595700a into DataDog:master Aug 7, 2017
@ufoot
Copy link
Contributor

ufoot commented Aug 7, 2017

Thanks for this contribution, FYI, 0.8.1 should be out this week (this PR was merged but releasing the official gem requires some extra QA-testing, among other things).

@driv3r driv3r deleted the bugfix/dont-modify-activerecord branch August 9, 2017 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants