-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add handleFindOne method #50
Conversation
@Marthyn .. can you give me use case for the handleFindOne .. it's interesting because I think I used to have that method, but I took it out a long time ago because I thought people could do:
for this case. |
True, but for example a reload on that object will still trigger an api request. I found in our app that even though we created the object with factoryguy there were still requests occurring, which we used to catch with pretender but we want to switch. |
Add handleFindOne method
Oh boy .. totally forgot about reload .. got it. |
Are you using bower? If so you can get this code by updating since its now in master branch. If not (using gem) let me know and I will make new release version. |
@Marthyn .. and thanks for updating the readme documentation ( almost no one does that ) |
We're using the gem :) |
v0.9.4 gem is now ready |
Thanks! Another use case i found btw is this:
you transition to the id of an object, instead of to the object itself. So it forces a reload. |
Interesting .. I have never done that in a transition .. only passed model .. good to know. |
to handle get requests with a specific id.
like
will return a record with id 1.