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

Features/handle ancestor relation #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Liooo
Copy link

@Liooo Liooo commented May 7, 2016

No description provided.

field_name = $(this).data("name")
nested = $(this).data('nested')
if(Array.isArray(nested))
keys = nested.map((obj)-> Object.keys(obj)[0])

Choose a reason for hiding this comment

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

Function arrows (-> and =>) must be spaced properly

@Liooo Liooo force-pushed the features/handle_ancestor_relation branch from 4c5b72a to f57fc83 Compare May 7, 2016 04:01
when Hash
attr = nested.keys.first
id = nested.values.first
obj = case(obj.class.reflect_on_association(attr))

Choose a reason for hiding this comment

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

Space after keyword case is missing.

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