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

class.find_by() not working #48

Open
LeKristapino opened this issue Oct 15, 2015 · 1 comment
Open

class.find_by() not working #48

LeKristapino opened this issue Oct 15, 2015 · 1 comment

Comments

@LeKristapino
Copy link

It seems that only find method is working when using obfuscated ids, thus not allowing to respond with nil if object is not found in the database. could you please fix that?

EDIT: Never mind. though I might suggest tweaking find method to accept another parameter "obfuscated" because keeping track of where the ids are normal and where they are scrambled is quite hard.

@wbotelhos
Copy link

Hi @LeKristapino ,

Since just the find method is overrided, find_by will work only with regular IDs.
Since this repository is kind deprecated, I created a gem to do that: https://github.com/wbotelhos/idy

I would love your feedback.

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

No branches or pull requests

2 participants