Skip to content

example plugin: add data-example-id only if it's been supplied.#24127

Merged
XhmikosR merged 3 commits intov4-devfrom
v4-dev-xmr-example-plugin
Sep 27, 2017
Merged

example plugin: add data-example-id only if it's been supplied.#24127
XhmikosR merged 3 commits intov4-devfrom
v4-dev-xmr-example-plugin

Conversation

@XhmikosR
Copy link
Member

My Ruby knowledge is pretty basic, but this seems to do the job.

@Johann-S
Copy link
Member

What's the goal of this PR @XhmikosR ?

@XhmikosR
Copy link
Member Author

Without this, we insert data-example-id whenever the example filter is being used even without id being passed as a parameter.

Copy link
Member

@bardiharborow bardiharborow left a comment

Choose a reason for hiding this comment

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

My Ruby is terrible too, but I think I can get away with reviewing a ternary operator. :)

@XhmikosR XhmikosR merged commit 6dd3d91 into v4-dev Sep 27, 2017
@XhmikosR XhmikosR deleted the v4-dev-xmr-example-plugin branch September 27, 2017 10:08
@mdo mdo mentioned this pull request Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants