Skip to content

Features/handle ancestor relation#74

Open
Liooo wants to merge 2 commits intowerein:masterfrom
Liooo:features/handle_ancestor_relation
Open

Features/handle ancestor relation#74
Liooo wants to merge 2 commits intowerein:masterfrom
Liooo:features/handle_ancestor_relation

Conversation

@Liooo
Copy link
Copy Markdown

@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])
Copy link
Copy Markdown

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))
Copy link
Copy Markdown

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