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

When refresh! is called on a class that inherits from BasicData, it's attributes are not refreshed #210

Open
brycemcd opened this issue Aug 19, 2016 · 0 comments
Labels

Comments

@brycemcd
Copy link
Contributor

As a developer, I expect refresh! to update the caller with the most recent data available from the Trello API. I discovered this not to be the case while working on #208 .

An example:

@card # => badges: {votes: 0}
# some other user acting on the same card:
@card.upvote # => badges: {votes: 1}
# back to me
@card.refresh! # => badges: {votes: 0}, should be votes: 1 

It seems that the client calls #get and fetches the new data, but the object is not updated with the most recent data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants