Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make ActiveRecord#find work with an id array (on base model or scope) + tests #221

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

Merged
merged 3 commits into from
Aug 3, 2019

Conversation

Tim-Blokdijk
Copy link
Contributor

Added a ruby/hyper-model/spec/batch7/aaa-unit_tests/ar_basics_spec.rb file.
I don't fully understand the dir structure under spec, don't know if the CI automatically picks up new files?
ActiveRecord#find is defined for the base model and for collections (scopes), has some code duplication.. same for the tests.

Please check this pull request, it's my first code contribution, earlier pull requests were for documentation.
This should close #184

@catmando catmando merged commit c8ebb5d into hyperstack-org:edge Aug 3, 2019
@catmando
Copy link
Contributor

catmando commented Aug 3, 2019

This was really well done, in particular the specs.

Yes any files in the batchx directories ..._spec.rb will be included in the CI.

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.

ActiveRecord::Base.find([1,2,3]) should return mutiple records
2 participants