Skip to content

Frameworks are not all Rails - #54

Open
pboling wants to merge 2 commits into
grosser:masterfrom
rivierapartners:master
Open

Frameworks are not all Rails#54
pboling wants to merge 2 commits into
grosser:masterfrom
rivierapartners:master

Conversation

@pboling

@pbolingpboling commented Aug 30, 2022

Copy link
Copy Markdown

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.

@grossergrosser left a comment

Copy link
Copy Markdown
Owner

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

pboling commented Sep 9, 2022

Copy link
Copy Markdown
Author

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
Copy Markdown
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
Copy Markdown
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 freeto 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

@pboling@grosser