Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

make ActiveRecord::NotFound exception configurable #51

Merged
merged 3 commits into from
May 8, 2016

Conversation

eturino
Copy link
Contributor

@eturino eturino commented Apr 13, 2016

in order to use other exceptions, if no ActiveRecord is used.

in order to use other exceptions, if no ActiveRecord is used.
@eturino
Copy link
Contributor Author

eturino commented Apr 13, 2016

I don't understand why it fails in Travis. It passes for me with rubies 2.1.7 and 2.3.0

@eturino
Copy link
Contributor Author

eturino commented Apr 13, 2016

after adding 2 more versions to Travis and no other change, now 2.1.0 runs ok but 2.1.7 fails... sigh...

@colinramsay
Copy link

Is this the only thing preventing Knock from being independent of Active Record?

@eturino
Copy link
Contributor Author

eturino commented Apr 26, 2016

@colinramsay I am using this in an rails 5 API with no ActiveRecord and it is fine so far.

@nsarno
Copy link
Owner

nsarno commented Apr 26, 2016

@eturino Thank you for this. I was hoping to come up with a solution other than configuration but I haven't had time to work on it yet.

Could you rebase this into one commit before I merge it? Thanks 👍

@eturino
Copy link
Contributor Author

eturino commented May 3, 2016

@nsarno I think you can use the new Github feature of "Squash and merge". I've been using them at work for quite some time now.

https://github.com/blog/2141-squash-your-commits

@nsarno nsarno merged commit 5ebfde6 into nsarno:master May 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants