Skip to content

COR-382: Handle data modification within plugin #21

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

Merged
merged 1 commit into from
Nov 21, 2016

Conversation

ElliottAYoung
Copy link
Contributor

@toastercup @arelia

Fixes and refactors tree data to only be an array of the selected values, rather than a huge hash of all possibilities.

def data=(data_hash)
values = data_hash.deep_symbolize_keys[:values]

if values.is_a?(Hash)
@values = values.keys
@values = { values: values.keys }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an FYI for future-us: this will probably break should we start passing in regular, non-Rails-forms arrays of IDs as part of our API implementation

@ElliottAYoung ElliottAYoung merged commit 3a24558 into develop Nov 21, 2016
@ElliottAYoung ElliottAYoung deleted the bugfix/COR-382-Tree-Refactor branch November 21, 2016 16:09
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

Successfully merging this pull request may close these issues.

2 participants