-
-
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
.reload() #54
Comments
Hmm .. that is kind of an odd url for a reload. What is the context for this? Can you recreate this somehow in a test? ( I am guessing not? ) .. Maybe by using a mock like: |
I expected that if I have company = factoryGuyHelper().make('company') Then when the company is reloaded in the app it will not do a request. But it seems I need to do factoryGuyHelper().handleFindOne('company', id: 1) |
Only problem with the handleFindOne is that is makes the record, so it's not good for just handling reload. Unless you use it for making and then also handling reload ( if you know what I mean ) .. |
Yeah, i thought of that too, you should be able to pass the object you want to return too, (you can of course pass all attributes and have the same result) |
@Marthyn 👍 |
@yratanov , @Marthyn, I added ability to handle reload in handleFindOne , because you can now pass in an existing record. Check it out in v0.9.5 and let me know what you think. Also, I hope you don't get too upset, but I deprecated handleFindOne in favor of just handleFind |
@danielspaniel Thank you 👍 |
Oh this is much better! Awesome! |
Calling
.reload()
causes weird request:GET http://localhost:7357/companies/1/tests/index.html 404 (Not Found)
.The text was updated successfully, but these errors were encountered: