Skip to content

Conversation

@pboling
Copy link

@pboling pboling commented Aug 30, 2022

When using this with active record within a framework like Grape, it is still useful.

From my commit messages:

Non-Rails apps, like Grape, Sinatra, etc, which may use ActiveRecord, still have need of the ability to test after_commit.

Grape, Sinatra, and other Ruby frameworks, may use ActiveRecord, but be unable to utilize Rails' built-in use_transactional_tests, due to it not being part of ActiveRecord, but instead part of Rails proper.

Non-Rails apps, like Grape, Sinatra, etc, which may use ActiveRecord, still have need of the ability to test `after_commit`.
Grape, Sinatra, and other Ruby frameworks, may use ActiveRecord, but be unable to utilize Rails' built-in `use_transactional_tests`, due to it not being part of ActiveRecord, but instead part of Rails proper.
Copy link
Owner

@grosser grosser left a comment

Choose a reason for hiding this comment

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

it's baked into AR 5+ so should not be needed for grape either ?

@pboling
Copy link
Author

pboling commented Sep 9, 2022

It would be nice if that were true.

Grape, Sinatra, and other Ruby frameworks, may use ActiveRecord, but be unable to utilize Rails' built-in use_transactional_tests, due to it not being part of ActiveRecord, but instead part of Rails proper.


s.required_ruby_version = '>= 2.0.0'
s.add_runtime_dependency "activerecord", [">= 3.2", "< 5.0"]
s.add_runtime_dependency "activerecord", ">= 3.2"
Copy link
Owner

Choose a reason for hiding this comment

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

this should be < 7.1 and add the missing gemfiles
(can remove all the old 4.x gemfiles)
and update the readme to say that this makes sense for non-rails only

Copy link
Author

Choose a reason for hiding this comment

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

Will do

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.

2 participants