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

partial! + :locals #251

Merged
merged 3 commits into from
Mar 3, 2015
Merged

partial! + :locals #251

merged 3 commits into from
Mar 3, 2015

Conversation

amatsuda
Copy link
Member

I was surprised to see that partial! doesn't handle :locals option in the same way as ActionView.

There was a comment in code that implies partial! partial: 'name', locals: { foo: 'bar' } would work, but in fact that code does not work, and does not even tested.

So here's an implementation with tests for:
json.partial! 'partial_name', locals: {foo: 'bar}
and
json.partial! 'partial_name', foo: 'bar

@amatsuda amatsuda changed the title partials! + :locals partial! + :locals Feb 23, 2015
rwz added a commit that referenced this pull request Mar 3, 2015
@rwz rwz merged commit c80f7b2 into rails:master Mar 3, 2015
@rwz
Copy link
Collaborator

rwz commented Mar 3, 2015

Sweet. Thanks for PR. Will release a new version shortly.

@amatsuda amatsuda deleted the locals branch March 3, 2015 03:28
@amatsuda
Copy link
Member Author

amatsuda commented Mar 3, 2015

🆒

@rwz
Copy link
Collaborator

rwz commented Mar 3, 2015

Released 2.2.9

@amatsuda
Copy link
Member Author

amatsuda commented Mar 3, 2015

Thanks! :)

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